diff options
author | 杨宇千 <crupest@outlook.com> | 2019-08-27 00:21:48 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-08-27 00:21:48 +0800 |
commit | a7ecdfb52c1d0406cec55e8dcee13f5fc0d52b8f (patch) | |
tree | 01a3c45fddfe63f05d60f0b4e0a066f7b2fcee34 /Timeline | |
parent | 2ec12846133c39133fad955461ee866d5de18deb (diff) | |
download | timeline-a7ecdfb52c1d0406cec55e8dcee13f5fc0d52b8f.tar.gz timeline-a7ecdfb52c1d0406cec55e8dcee13f5fc0d52b8f.tar.bz2 timeline-a7ecdfb52c1d0406cec55e8dcee13f5fc0d52b8f.zip |
Add max-age.
Diffstat (limited to 'Timeline')
-rw-r--r-- | Timeline/Controllers/UserAvatarController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Timeline/Controllers/UserAvatarController.cs b/Timeline/Controllers/UserAvatarController.cs index 59615371..bbfad6af 100644 --- a/Timeline/Controllers/UserAvatarController.cs +++ b/Timeline/Controllers/UserAvatarController.cs @@ -80,7 +80,7 @@ namespace Timeline.Controllers var avatarInfo = await _service.GetAvatar(username);
var avatar = avatarInfo.Avatar;
- Response.Headers.Add("Cache-Control", "no-cache, must-revalidate");
+ Response.Headers.Add("Cache-Control", "no-cache, must-revalidate, max-age=1");
return File(avatar.Data, avatar.Type, new DateTimeOffset(avatarInfo.LastModified), eTag);
}
catch (UserNotExistException e)
|