mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-10-29 00:55:32 +00:00
Changed file extensions + single issue view
This commit is contained in:
8
server/helpers.go
Normal file
8
server/helpers.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package server
|
||||
|
||||
import "github.com/gofiber/fiber/v2"
|
||||
|
||||
func CacheFunc(c *fiber.Ctx) bool {
|
||||
return c.Query("noCache") == "true" || c.Response().StatusCode() != fiber.StatusOK
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user