Skip to content

Commit 92fcec2

Browse files
committed
fix the cache regression issue #10 and #19
1 parent 8792daa commit 92fcec2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OutputCacheModuleAsync/OutputCacheHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ public async Task CacheResponseAsync() {
413413
if (settings.SlidingExpiration) {
414414
slidingDelta = settings.SlidingDelta;
415415
}
416-
else if (settings.MaxAge != TimeSpan.MinValue) {
416+
else if (settings.MaxAge != TimeSpan.Zero) {
417417
DateTime utcTimestamp = (settings.UtcTimestampCreated != DateTime.MinValue)
418418
? settings.UtcTimestampCreated
419419
: _context.Timestamp;

0 commit comments

Comments
 (0)