mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-02-26 15:39:18 -06:00
Fix cache header for web and theme assets
This commit is contained in:
5
changelog/unreleased/fix-cache-header.md
Normal file
5
changelog/unreleased/fix-cache-header.md
Normal file
@@ -0,0 +1,5 @@
|
||||
Bugfix: Let clients cache web and theme assets
|
||||
|
||||
We needed to remove "must-revalidate" from the cache-control header to allow clients to cache the web and theme assets.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/6914
|
||||
@@ -168,7 +168,7 @@ func (p Web) Static(ttl int) http.HandlerFunc {
|
||||
return
|
||||
}
|
||||
|
||||
w.Header().Set("Cache-Control", fmt.Sprintf("max-age=%s, must-revalidate", strconv.Itoa(ttl)))
|
||||
w.Header().Set("Cache-Control", fmt.Sprintf("max-age=%s", strconv.Itoa(ttl)))
|
||||
w.Header().Set("Expires", expires)
|
||||
w.Header().Set("Last-Modified", lastModified)
|
||||
w.Header().Set("SameSite", "Strict")
|
||||
|
||||
Reference in New Issue
Block a user