From ae8028549e8e39f278af8680a85903d877981cea Mon Sep 17 00:00:00 2001 From: AzenKain Date: Wed, 20 May 2026 16:11:50 +0700 Subject: [PATCH] UPDATE: try fix proxy --- internal/controllers/goongController.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/internal/controllers/goongController.go b/internal/controllers/goongController.go index 9afa3fa..c0e7bab 100644 --- a/internal/controllers/goongController.go +++ b/internal/controllers/goongController.go @@ -87,11 +87,9 @@ func (ctrl *goongController) Proxy(c fiber.Ctx) error { c.Set("Cross-Origin-Resource-Policy", "cross-origin") if c.Method() == "GET" { - if statusCode == fiber.StatusOK || statusCode == fiber.StatusNotModified { - c.Set("Cache-Control", "public, max-age=86400") - } else { - c.Set("Cache-Control", "no-store, no-cache, must-revalidate") - } + c.Set("Cache-Control", "no-store, no-cache, must-revalidate, max-age=0") + c.Set("CDN-Cache-Control", "no-store") + c.Set("Cloudflare-CDN-Cache-Control", "no-store") } return c.Status(statusCode).Send(respBody)