Commit cce7638c52883b7a1e6aeb5c21028f6bf3f62e21
Fix 304 cache response
Charles Lehner committed on 3/8/2016, 6:15:53 AMParent: fa882914e2b1014a0cc7408973f4431085142ed8
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -246,9 +246,9 @@ | ||
246 | 246 | cb(null, err ? |
247 | 247 | err.code == 'ENOENT' ? serve404(req) |
248 | 248 | : servePlainError(500, err.message) |
249 | 249 | : 'if-modified-since' in req.headers && |
250 | - new Date(req.headers['if-modified-since']) <= stats.mtime ? | |
250 | + new Date(req.headers['if-modified-since']) >= stats.mtime ? | |
251 | 251 | pull.once([304]) |
252 | 252 | : stats.isDirectory() ? |
253 | 253 | servePlainError(403, 'Directory not listable') |
254 | 254 | : cat([ |
Built with git-ssb-web