feat: browser cache directives
This commit is contained in:
1 parent
603203848a
commit
190cb99a79
10 files changed
+41
-11
No files matched your search
+1
-1
@@ -49,7 +49,7 @@ func (d *data) Check(path string) bool {
|
||||
|
||||
func handle(fn handleFunc, prefix string, store *storage.Storage, server *settings.Server) http.Handler {
|
||||
handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
w.Header().Set("Cache-Control", "no-cache")
|
||||
w.Header().Set("Cache-Control", "no-cache, no-store, must-revalidate")
|
||||
|
||||
settings, err := store.Settings.Get()
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user