From 04badad2beb4e63902e44d03654944613d966bb9 Mon Sep 17 00:00:00 2001 From: Ronni Skansing Date: Thu, 28 May 2026 13:05:16 +0200 Subject: [PATCH] clear cache of 404 on favicon Signed-off-by: Ronni Skansing --- backend/middleware/session.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/middleware/session.go b/backend/middleware/session.go index 06dc3d9..6cfc627 100644 --- a/backend/middleware/session.go +++ b/backend/middleware/session.go @@ -30,10 +30,12 @@ func NewSoftSessionHandler( } s, err := sessionService.GetAndExtendSession(c) if err != nil { + c.Header("Cache-Control", "no-store") c.AbortWithStatus(http.StatusNotFound) return } if s.User == nil { + c.Header("Cache-Control", "no-store") c.AbortWithStatus(http.StatusNotFound) return }