Initial commit

This commit is contained in:
Lizandro Guarnizo
2025-02-06 14:22:29 -05:00
commit 6d8f1bcd6f
452 changed files with 250835 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
package middlewares
import "github.com/gofiber/fiber/v2"
func LoadCacheHeaders(c *fiber.Ctx) error {
c.Set("X-DNS-Prefetch-Control", "off")
c.Set("Pragma", "no-cache")
c.Set("Expires", "Fri, 01 Jan 1990 00:00:00 GMT")
c.Set("Cache-Control", "no-cache, must-revalidate, no-store, max-age=0, private")
return c.Next()
}