44 references to ETag
Microsoft.AspNetCore.OutputCaching.Tests (2)
OutputCacheTests.cs (2)
1044
Assert.Equal(initialResponse.Headers.
ETag
, subsequentResponse.Headers.
ETag
);
Microsoft.AspNetCore.ResponseCaching.Tests (2)
ResponseCachingTests.cs (2)
948
Assert.Equal(initialResponse.Headers.
ETag
, subsequentResponse.Headers.
ETag
);
Microsoft.AspNetCore.StaticAssets.Tests (16)
StaticAssetsIntegrationTests.cs (16)
64
Assert.Equal($"\"{GetEtag("Hello, World!")}\"", response.Headers.
ETag
.Tag);
114
Assert.Equal($"\"{GetEtag("Hello, World!")}\"", response.Headers.
ETag
.Tag);
166
Assert.Equal($"\"{GetEtag("Hello, World!")}\"", response.Headers.
ETag
.Tag);
335
Assert.Equal($"\"3/1gIbsr1bCvZ2KQgJ7DpTGR3YHH9wpLKGiKNiGCmG8=\"", response.Headers.
ETag
.Tag);
388
Assert.Equal($"\"+fvSyRQcr4/t/rcA0u1KfZ8c3CpXxBDxsxDhnAftNqg=\"", response.Headers.
ETag
.Tag);
444
Assert.Equal(GetGzipEtag(Path.Combine(webRoot, "sample.txt")), response.Headers.
ETag
.Tag);
625
Assert.NotNull(response.Headers.
ETag
);
626
Assert.NotNull(response.Headers.
ETag
.Tag);
635
Assert.Equal(response2.Headers.
ETag
, response1.Headers.
ETag
);
665
req.Headers.Add("If-Match", original.Headers.
ETag
.ToString());
714
req2.Headers.Add("If-None-Match", resp1.Headers.
ETag
.ToString());
740
req2.Headers.Add("If-None-Match", resp1.Headers.
ETag
.ToString());
787
req2.Headers.Add("If-None-Match", resp1.Headers.
ETag
.ToString());
801
var etag = resp1.Headers.
ETag
.ToString();
835
req3.Headers.IfNoneMatch.Add(resp1.Headers.
ETag
);
Microsoft.AspNetCore.StaticFiles.Tests (24)
CacheHeaderTests.cs (10)
21
Assert.NotNull(response.Headers.
ETag
);
22
Assert.NotNull(response.Headers.
ETag
.Tag);
33
Assert.Equal(response2.Headers.
ETag
, response1.Headers.
ETag
);
65
req.Headers.Add("If-Match", original.Headers.
ETag
.ToString());
117
req2.Headers.Add("If-None-Match", resp1.Headers.
ETag
.ToString());
145
req2.Headers.Add("If-None-Match", resp1.Headers.
ETag
.ToString());
196
.AddHeader("If-None-Match", resp1.Headers.
ETag
.ToString())
212
var etag = resp1.Headers.
ETag
.ToString();
251
.AddHeader("If-None-Match", resp1.Headers.
ETag
.ToString())
RangeHeaderTests.cs (6)
24
req.Headers.Add("If-Range", original.Headers.
ETag
.ToString());
45
req.Headers.Add("If-Range", original.Headers.
ETag
.ToString());
50
Assert.Equal(original.Headers.
ETag
, resp.Headers.
ETag
);
211
req.Headers.Add("If-Range", original.Headers.
ETag
.ToString());
238
req.Headers.Add("If-Range", original.Headers.
ETag
.ToString());
StaticFileMiddlewareTests.cs (8)
41
Assert.Null(response.Headers.
ETag
);
75
Assert.Null(response.Headers.
ETag
);
115
Assert.Null(response.Headers.
ETag
);
193
Assert.NotNull(response.Headers.
ETag
);
232
Assert.NotNull(response.Headers.
ETag
);
274
Assert.NotNull(response.Headers.
ETag
);
324
Assert.NotNull(response.Headers.
ETag
);
367
Assert.NotNull(response.Headers.
ETag
);