feat: implement Goong service and controller for location functionality and update database schema diagram
All checks were successful
Build and Release / release (push) Successful in 1m28s
All checks were successful
Build and Release / release (push) Successful in 1m28s
This commit is contained in:
@@ -84,7 +84,11 @@ func (ctrl *goongController) Proxy(c fiber.Ctx) error {
|
||||
}
|
||||
|
||||
if c.Method() == "GET" {
|
||||
c.Set("Cache-Control", "public, max-age=86400")
|
||||
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")
|
||||
}
|
||||
}
|
||||
|
||||
return c.Status(statusCode).Send(respBody)
|
||||
|
||||
Reference in New Issue
Block a user