fix: remove "no-transfrom" from the cache-control header (#37985)

Cloudflare has officially removed the "auto-minify" feature
https://community.cloudflare.com/t/655677, so we don't need such option
anymore.

Fix #34521
This commit is contained in:
wxiaoguang authored and GitHub committed 2026-06-04 00:12:02 +08:00
1 parent 79810ba2e3
commit fbaaac9c14
6 files changed
+11 -19

No files matched your search

+1 -1
View File
@@ -196,7 +196,7 @@ func Contexter() func(next http.Handler) http.Handler {
}
}
httpcache.SetCacheControlInHeader(ctx.Resp.Header(), &httpcache.CacheControlOptions{NoTransform: true})
httpcache.SetCacheControlInHeader(ctx.Resp.Header(), &httpcache.CacheControlOptions{})
ctx.Data["SystemConfig"] = setting.Config()