Skip to content

Commit

Permalink
res: get more aggressive with no-cache since private cache sometimes …
Browse files Browse the repository at this point in the history
…will still serve old versions
  • Loading branch information
ntbosscher committed Jan 8, 2025
1 parent 5f19126 commit 383638f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion res/nocache.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var epoch = time.Unix(0, 0).Format(time.RFC1123)

var noCacheHeaders = map[string]string{
"Expires": epoch,
"Cache-Control": "no-cache, private, max-age=0",
"Cache-Control": "no-store, no-cache, must-revalidate, max-age=0",
"Pragma": "no-cache",
"X-Accel-Expires": "0",
}
Expand Down

0 comments on commit 383638f

Please sign in to comment.