Skip to content

Commit 81ab845

Browse files
committed
clarify frontend files cache policy
Previously Cache-Control was set to "max-age=3600, no-cache", but max-age is not used in case no-cache is set.
1 parent 564e8ff commit 81ab845

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

backend/app/rest/api/rest.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,8 @@ func addFileServer(r chi.Router, embedFS embed.FS, webRoot, version string) {
500500
http.NotFound(w, r)
501501
return
502502
}
503+
// without it it would be set to "max-age=3600, no-cache" which is redundant
504+
w.Header().Set("Cache-Control", "no-cache")
503505
webFS.ServeHTTP(w, r)
504506
})
505507
}

0 commit comments

Comments
 (0)