summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorsiddharth ravikumar <s@ricketyspace.net>2022-05-29 21:49:43 -0400
committersiddharth ravikumar <s@ricketyspace.net>2022-05-29 21:49:43 -0400
commit6412e0a30cd37cd8b814802f8d24021af7d60bbd (patch)
treec4fc19f7ed1a2ec6ae6f420953b889722139ec6a /templates
parent4335ba333449e6f5a95a566a9461249bf2dd8e07 (diff)
peach: update static file serving
Add Cache-Control header for static files.
Diffstat (limited to 'templates')
-rw-r--r--templates/search.tmpl4
-rw-r--r--templates/weather.tmpl4
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/search.tmpl b/templates/search.tmpl
index 1101f08..d00942c 100644
--- a/templates/search.tmpl
+++ b/templates/search.tmpl
@@ -5,8 +5,8 @@
<title>peach - {{.Title}}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="author" content="siddharth ravikumar">
- <link rel="preload" href="/static/peach.css" as="style" />
- <style>@import url("/static/peach.css");</style>
+ <link rel="preload" href="/static/peach.css?{{ .Version }}" as="style" />
+ <style>@import url("/static/peach.css?{{ .Version }}");</style>
</head>
<body>
<div class="peach">
diff --git a/templates/weather.tmpl b/templates/weather.tmpl
index e03ac75..2c731d4 100644
--- a/templates/weather.tmpl
+++ b/templates/weather.tmpl
@@ -5,8 +5,8 @@
<title>peach - {{.Title}}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="author" content="siddharth ravikumar">
- <link rel="preload" href="/static/peach.css" as="style" />
- <style>@import url("/static/peach.css");</style>
+ <link rel="preload" href="/static/peach.css?{{ .Version }}" as="style" />
+ <style>@import url("/static/peach.css?{{ .Version }}");</style>
</head>
<body>
<div class="peach">