This commit is contained in:
Simon Martens
2025-03-13 22:11:55 +01:00
parent f85dbab551
commit 534fabcb54
8 changed files with 332 additions and 162 deletions

7
server/functions.go Normal file
View File

@@ -0,0 +1,7 @@
package server
import "github.com/gofiber/fiber/v2"
func CacheFunc(c *fiber.Ctx) bool {
return c.Query("noCache") == "true" || c.Response().StatusCode() != fiber.StatusOK
}