From ffab149dff0ff0b9b2cf8cd924276774c55a7b8c Mon Sep 17 00:00:00 2001 From: iacore Date: Thu, 25 Apr 2024 12:07:50 +0000 Subject: [PATCH] Use the full Request URL as cache key --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 68a634b..4e778e7 100644 --- a/main.go +++ b/main.go @@ -182,7 +182,7 @@ func main() { CacheControl: true, KeyGenerator: func(c *fiber.Ctx) string { - key := utils.CopyString(c.Path()) + key := utils.CopyString(c.OriginalURL()) for _, cookieName := range session.AllCookieNames { cookieValue := session.GetCookie(c, cookieName) if cookieValue != "" {