summaryrefslogtreecommitdiffstats
path: root/routers/install
diff options
context:
space:
mode:
Diffstat (limited to 'routers/install')
-rw-r--r--routers/install/routes.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/install/routes.go b/routers/install/routes.go
index a8efc92fe1..82d9c34b41 100644
--- a/routers/install/routes.go
+++ b/routers/install/routes.go
@@ -64,7 +64,7 @@ func installRecovery(ctx goctx.Context) func(next http.Handler) http.Handler {
"SignedUserName": "",
}
- httpcache.AddCacheControlToHeader(w.Header(), 0, "no-transform")
+ httpcache.SetCacheControlInHeader(w.Header(), 0, "no-transform")
w.Header().Set(`X-Frame-Options`, setting.CORSConfig.XFrameOptions)
if !setting.IsProd {