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