diff options
context:
space:
mode:
Diffstat (limited to 'custom/servers/nginx.conf')
-rw-r--r--custom/servers/nginx.conf6
1 file changed, 6 insertions, 0 deletions
diff --git a/custom/servers/nginx.conf b/custom/servers/nginx.conf
index 3b0b7ef..12d6888 100644
--- a/custom/servers/nginx.conf
+++ b/custom/servers/nginx.conf
@@ -234,6 +234,12 @@ http {
# can take a while, so give cgit room and stream rather than buffer.
fastcgi_read_timeout 300s;
fastcgi_buffering off;
+
+ # cgit sends no caching headers of its own, so browsers refetch
+ # dynamic pages and cgit's internal cache keeps that cheap. Do not
+ # add a blanket expires or Cache-Control in this location. It
+ # would fight the no-store cgit puts on the login page and could
+ # let one visitor's page be served to another from a shared cache.
}
}
}