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 }