aboutsummaryrefslogtreecommitdiff
path: root/Timeline.Tests/IntegratedTests/UserAvatarTests.cs
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-08-29 00:03:48 +0800
committer杨宇千 <crupest@outlook.com>2019-08-29 00:03:48 +0800
commitee73f13b903e953f9bbb730514bf1faa1204e1d0 (patch)
treed7a8655e999fe3143e5a5436a6d157c7bcc93e88 /Timeline.Tests/IntegratedTests/UserAvatarTests.cs
parent0bbc5766119d9241473c737b5626e6b455ebba2b (diff)
downloadtimeline-ee73f13b903e953f9bbb730514bf1faa1204e1d0.tar.gz
timeline-ee73f13b903e953f9bbb730514bf1faa1204e1d0.tar.bz2
timeline-ee73f13b903e953f9bbb730514bf1faa1204e1d0.zip
Use cache attribute.
Diffstat (limited to 'Timeline.Tests/IntegratedTests/UserAvatarTests.cs')
-rw-r--r--Timeline.Tests/IntegratedTests/UserAvatarTests.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Timeline.Tests/IntegratedTests/UserAvatarTests.cs b/Timeline.Tests/IntegratedTests/UserAvatarTests.cs
index a98d807e..246125d0 100644
--- a/Timeline.Tests/IntegratedTests/UserAvatarTests.cs
+++ b/Timeline.Tests/IntegratedTests/UserAvatarTests.cs
@@ -70,6 +70,10 @@ namespace Timeline.Tests.IntegratedTests
res.Content.Headers.ContentType.MediaType.Should().Be("image/png");
var body = await res.Content.ReadAsByteArrayAsync();
body.Should().Equal(defaultAvatarData);
+ var cacheControl = res.Headers.CacheControl;
+ cacheControl.NoCache.Should().BeTrue();
+ cacheControl.NoStore.Should().BeFalse();
+ cacheControl.MaxAge.Should().NotBeNull().And.Be(TimeSpan.Zero);
eTag = res.Headers.ETag;
}