Skip to content

Commit

Permalink
remove cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ZimaOS committed Jan 11, 2024
1 parent 2c1a72c commit fd925df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions route/v1/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit fd925df

Please sign in to comment.