39 writes to MaxAge
Microsoft.AspNetCore.Http.Extensions.Tests (1)
HeaderDictionaryTypeExtensionsTest.cs (1)
51var expected = new CacheControlHeaderValue() { MaxAge = TimeSpan.FromSeconds(604800) };
Microsoft.AspNetCore.OutputCaching.Tests (4)
OutputCacheMiddlewareTests.cs (2)
458MaxAge = TimeSpan.FromSeconds(12) 484MaxAge = TimeSpan.FromSeconds(12),
OutputCachePolicyProviderTests.cs (2)
359MaxAge = TimeSpan.FromSeconds(10) 382MaxAge = TimeSpan.FromSeconds(10),
Microsoft.AspNetCore.ResponseCaching.Tests (25)
ResponseCachingMiddlewareTests.cs (2)
481MaxAge = TimeSpan.FromSeconds(12) 506MaxAge = TimeSpan.FromSeconds(12),
ResponseCachingPolicyProviderTests.cs (21)
411MaxAge = TimeSpan.FromSeconds(10) 431MaxAge = TimeSpan.FromSeconds(10) 453MaxAge = TimeSpan.FromSeconds(10), 473MaxAge = TimeSpan.FromSeconds(10), 550MaxAge = TimeSpan.FromSeconds(10) 570MaxAge = TimeSpan.FromSeconds(10) 592MaxAge = TimeSpan.FromSeconds(10), 613MaxAge = TimeSpan.FromSeconds(10), 636MaxAge = TimeSpan.FromSeconds(10), 655MaxAge = TimeSpan.FromSeconds(5) 660MaxAge = TimeSpan.FromSeconds(10), 677MaxAge = TimeSpan.FromSeconds(5), 684MaxAge = TimeSpan.FromSeconds(5), 701MaxAge = TimeSpan.FromSeconds(5), 707MaxAge = TimeSpan.FromSeconds(5), 724MaxAge = TimeSpan.FromSeconds(5), 731MaxAge = TimeSpan.FromSeconds(5), 748MaxAge = TimeSpan.FromSeconds(5), 755MaxAge = TimeSpan.FromSeconds(5), 773MaxAge = TimeSpan.FromSeconds(5), 780MaxAge = TimeSpan.FromSeconds(5),
TestUtils.cs (2)
47MaxAge = string.IsNullOrEmpty(expires) ? TimeSpan.FromSeconds(10) : (TimeSpan?)null 53headers.CacheControl.MaxAge = string.IsNullOrEmpty(expires) ? TimeSpan.FromSeconds(10) : (TimeSpan?)null;
Microsoft.Net.Http.Headers.Tests (8)
CacheControlHeaderValueTest.cs (8)
35cacheControl.MaxAge = timeSpan; 83cacheControl.MaxAge = new TimeSpan(0, 1, 10); 182values[0].MaxAge = new TimeSpan(0, 1, 1); 202values[1].MaxAge = new TimeSpan(0, 1, 1); 296values[0].MaxAge = new TimeSpan(0, 1, 1); 316values[1].MaxAge = new TimeSpan(0, 1, 1); 390expected.MaxAge = new TimeSpan(0, 0, 125); 414expected.MaxAge = new TimeSpan(0, 0, 987654321);
ResponseCachingSample (1)
Startup.cs (1)
23MaxAge = TimeSpan.FromSeconds(10)
5 references to MaxAge
Microsoft.AspNetCore.HeaderParsing.Tests (1)
ParserTests.cs (1)
122Assert.Equal(TimeSpan.FromSeconds(604800), result.MaxAge);
Microsoft.AspNetCore.Server.HttpSys (2)
RequestProcessing\RequestContext.FeatureCollection.cs (2)
694else if (cacheControl.MaxAge.HasValue) 696return cacheControl.MaxAge;
Microsoft.Net.Http.Headers (1)
CacheControlHeaderValue.cs (1)
170/// Overrides <see cref="MaxAge">max-age</see>, but only for shared caches (such as proxies).
Microsoft.Net.Http.Headers.Tests (1)
CacheControlHeaderValueTest.cs (1)
36Assert.Equal(timeSpan, cacheControl.MaxAge);