remove cache

This commit is contained in:
link 2024-01-11 07:01:22 +00:00
parent 2c1a72c5e5
commit fd925df5d1

View File

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