Skip to content

Commit

Permalink
Remove 'immutable' cache directive.
Browse files Browse the repository at this point in the history
  • Loading branch information
bvanvugt committed Dec 6, 2023
1 parent 61dfd4a commit 930d771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func withCaching(wrappedHandler http.HandlerFunc) http.HandlerFunc {
}

return func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Cache-Control", fmt.Sprintf("public, max-age=%s, immutable", cacheControlMaxAgeSeconds))
w.Header().Set("Cache-Control", fmt.Sprintf("public, max-age=%s", cacheControlMaxAgeSeconds))

// Set etag based on URL path and App Version
etagString := fmt.Sprintf("%s/%s", appVersion, r.URL.Path)
Expand Down

0 comments on commit 930d771

Please sign in to comment.