aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-08-27 00:21:48 +0800
committer杨宇千 <crupest@outlook.com>2019-08-27 00:21:48 +0800
commit97f1233082e1978595c24d8cfab5f9b3ae395112 (patch)
tree01a3c45fddfe63f05d60f0b4e0a066f7b2fcee34
parent3a2633114c4d48fa32767528ab8220c8cc49cd8f (diff)
downloadtimeline-97f1233082e1978595c24d8cfab5f9b3ae395112.tar.gz
timeline-97f1233082e1978595c24d8cfab5f9b3ae395112.tar.bz2
timeline-97f1233082e1978595c24d8cfab5f9b3ae395112.zip
Add max-age.
-rw-r--r--Timeline/Controllers/UserAvatarController.cs2
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)