summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--templates/website/nginx/site.erb4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/website/nginx/site.erb b/templates/website/nginx/site.erb
index 61e90cd..c73f821 100644
--- a/templates/website/nginx/site.erb
+++ b/templates/website/nginx/site.erb
@@ -79,6 +79,10 @@ server {
expires 1d;
}
+ location ~ /(?:(?:latest|upgrade)\.yml(?:\.pgp)?|mirrors\.json)$ {
+ add_header Cache-Control "max-age=7200, must-revalidate";
+ }
+
<%- if @cgi -%>
location /ikiwiki.cgi {
# Disable gzip (it makes scripts feel slower since they have to complete