We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8792daa commit 92fcec2Copy full SHA for 92fcec2
src/OutputCacheModuleAsync/OutputCacheHelper.cs
@@ -413,7 +413,7 @@ public async Task CacheResponseAsync() {
413
if (settings.SlidingExpiration) {
414
slidingDelta = settings.SlidingDelta;
415
}
416
- else if (settings.MaxAge != TimeSpan.MinValue) {
+ else if (settings.MaxAge != TimeSpan.Zero) {
417
DateTime utcTimestamp = (settings.UtcTimestampCreated != DateTime.MinValue)
418
? settings.UtcTimestampCreated
419
: _context.Timestamp;
0 commit comments