Merge pull request #6914 from owncloud/fix-static-cache

Fix cache header for web and theme assets
This commit is contained in:
Michael Barz
2023-07-28 15:22:27 +02:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -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")