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