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 | 97f1233082e1978595c24d8cfab5f9b3ae395112 (patch) | |
tree | 01a3c45fddfe63f05d60f0b4e0a066f7b2fcee34 /Timeline/Controllers | |
parent | 3a2633114c4d48fa32767528ab8220c8cc49cd8f (diff) | |
download | timeline-97f1233082e1978595c24d8cfab5f9b3ae395112.tar.gz timeline-97f1233082e1978595c24d8cfab5f9b3ae395112.tar.bz2 timeline-97f1233082e1978595c24d8cfab5f9b3ae395112.zip |
Add max-age.
Diffstat (limited to 'Timeline/Controllers')
-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)
|