UPDATE: try fix proxy
All checks were successful
Build and Release / release (push) Successful in 1m31s
All checks were successful
Build and Release / release (push) Successful in 1m31s
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user