From a46f5dc5ba6d16e2db8d2e8e1574a7f6fe085a2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastien=20Cl=C3=A9ment?= Date: Mon, 15 Jul 2024 00:58:40 +0200 Subject: [PATCH] Make default cache header a bit more conservative --- README.md | 8 ++++---- main.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 682b551..aaee61f 100644 --- a/README.md +++ b/README.md @@ -36,10 +36,10 @@ http { } server { - proxy_cache static; - proxy_cache_use_stale error timeout invalid_header updating; - proxy_cache_revalidate on; - proxy_cache_valid 200 404 1m; + proxy_cache static; + proxy_cache_use_stale error timeout; + proxy_cache_revalidate on; + proxy_cache_valid 200 404 1m; proxy_cache_background_update on; location / { diff --git a/main.go b/main.go index de7ea58..f081a64 100644 --- a/main.go +++ b/main.go @@ -24,7 +24,7 @@ type MountPoint struct { Prefix string } -const defaultCacheControl = "public, max-age=60, stale-while-revalidate=86400, stale-if-error=86400" +const defaultCacheControl = "public, max-age=60, must-revalidate" var client *storage.Client var mountPoints []MountPoint