mirror of
https://github.com/KaySar12/NextZen-UserService.git
synced 2025-03-15 23:25:35 +07:00
remove cache
This commit is contained in:
parent
2c1a72c5e5
commit
fd925df5d1
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user