mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-10-28 16:45:32 +00:00
8 lines
176 B
Go
8 lines
176 B
Go
package server
|
|
|
|
import "github.com/gofiber/fiber/v2"
|
|
|
|
func CacheFunc(c *fiber.Ctx) bool {
|
|
return c.Query("noCache") == "true" || c.Response().StatusCode() != fiber.StatusOK
|
|
}
|