UPDATE: try fix proxy
All checks were successful
Build and Release / release (push) Successful in 1m31s

This commit is contained in:
2026-05-20 16:11:50 +07:00
parent e41855e538
commit ae8028549e

View File

@@ -87,11 +87,9 @@ func (ctrl *goongController) Proxy(c fiber.Ctx) error {
c.Set("Cross-Origin-Resource-Policy", "cross-origin") c.Set("Cross-Origin-Resource-Policy", "cross-origin")
if c.Method() == "GET" { if c.Method() == "GET" {
if statusCode == fiber.StatusOK || statusCode == fiber.StatusNotModified { c.Set("Cache-Control", "no-store, no-cache, must-revalidate, max-age=0")
c.Set("Cache-Control", "public, max-age=86400") c.Set("CDN-Cache-Control", "no-store")
} else { c.Set("Cloudflare-CDN-Cache-Control", "no-store")
c.Set("Cache-Control", "no-store, no-cache, must-revalidate")
}
} }
return c.Status(statusCode).Send(respBody) return c.Status(statusCode).Send(respBody)