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) }