Skip to content

Commit

Permalink
Make default cache header a bit more conservative
Browse files Browse the repository at this point in the history
  • Loading branch information
BastienClement committed Jul 14, 2024
1 parent 02e3768 commit a46f5dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 / {
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a46f5dc

Please sign in to comment.