From 5ea9595c9ca454f87b494f7b31e5398f67cb795b Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 25 Jan 2023 21:15:22 +0100 Subject: [PATCH] internal: fix cache-control header Signed-off-by: Jens Langhammer #4525 --- internal/web/static.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/web/static.go b/internal/web/static.go index 5e8f721d2..c4f6dbcf4 100644 --- a/internal/web/static.go +++ b/internal/web/static.go @@ -61,7 +61,7 @@ func (ws *WebServer) configureStatic() { func (ws *WebServer) staticHeaderMiddleware(h http.Handler) http.Handler { etagHandler := etag.Handler(h, false) return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - w.Header().Set("Cache-Control", "\"public, no-transform\"") + w.Header().Set("Cache-Control", "public, no-transform") w.Header().Set("X-authentik-version", constants.VERSION) w.Header().Set("Vary", "X-authentik-version, Etag") etagHandler.ServeHTTP(w, r)