mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
Avoid orphaned cache files from breaking the caching layer.
This commit is contained in:
parent
6fd73ecfda
commit
57d0a2e803
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,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'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue