diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/node/utils/caching_middleware.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node/utils/caching_middleware.js b/src/node/utils/caching_middleware.js index 29c95049..9e62ee84 100644 --- a/src/node/utils/caching_middleware.js +++ b/src/node/utils/caching_middleware.js @@ -55,7 +55,7 @@ CachingMiddleware.prototype = new function () { var modifiedSince = (req.headers['if-modified-since'] && new Date(req.headers['if-modified-since'])); var lastModifiedCache = !error && stats.mtime; - if (lastModifiedCache) { + if (lastModifiedCache && responseCache[cacheKey]) { req.headers['if-modified-since'] = lastModifiedCache.toUTCString(); } else { delete req.headers['if-modified-since']; |