diff options
author | 杨宇千 <crupest@outlook.com> | 2019-08-29 00:03:48 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-08-29 00:03:48 +0800 |
commit | a276fb5ab706a1da188b3abfaaf50e2e24ee3475 (patch) | |
tree | d7a8655e999fe3143e5a5436a6d157c7bcc93e88 /Timeline.Tests/IntegratedTests/UserAvatarTests.cs | |
parent | 1013af20669029f34a92a9c2b36baf962a480a6e (diff) | |
download | timeline-a276fb5ab706a1da188b3abfaaf50e2e24ee3475.tar.gz timeline-a276fb5ab706a1da188b3abfaaf50e2e24ee3475.tar.bz2 timeline-a276fb5ab706a1da188b3abfaaf50e2e24ee3475.zip |
Use cache attribute.
Diffstat (limited to 'Timeline.Tests/IntegratedTests/UserAvatarTests.cs')
-rw-r--r-- | Timeline.Tests/IntegratedTests/UserAvatarTests.cs | 4 |
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;
}
|