We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
X-Gitea-Debug
1 parent a2f4446 commit af8a1c6Copy full SHA for af8a1c6
modules/httpcache/httpcache.go
@@ -31,7 +31,7 @@ func AddCacheControlToHeader(h http.Header, maxAge time.Duration, additionalDire
31
directives = append(directives, "max-age=0", "private", "must-revalidate")
32
33
// to remind users they are using non-prod setting.
34
- h.Add("X-Gitea-Debug", "RUN_MODE="+setting.RunMode)
+ h.Set("X-Gitea-Debug", "RUN_MODE="+setting.RunMode)
35
}
36
37
h.Set("Cache-Control", strings.Join(append(directives, additionalDirectives...), ", "))
0 commit comments