From fd925df5d18a969c657369d45a21eac23c3a94f3 Mon Sep 17 00:00:00 2001 From: link Date: Thu, 11 Jan 2024 07:01:22 +0000 Subject: [PATCH] remove cache --- route/v1/user.go | 1 + 1 file changed, 1 insertion(+) diff --git a/route/v1/user.go b/route/v1/user.go index 5237b58..5cd974d 100644 --- a/route/v1/user.go +++ b/route/v1/user.go @@ -229,6 +229,7 @@ func GetUserAvatar(c *gin.Context) { } user.Avatar = "/usr/share/casaos/www/avatar.svg" c.Header("Content-Disposition", "attachment; filename*=utf-8''"+url2.PathEscape(path.Base(user.Avatar))) + c.Header("Cache-Control", "no-cache, no-store, max-age=0, must-revalidate, value") c.File(user.Avatar) }