git ssb

30+

cel / git-ssb-web



Commit cce7638c52883b7a1e6aeb5c21028f6bf3f62e21

Fix 304 cache response

Charles Lehner committed on 3/8/2016, 6:15:53 AM
Parent: fa882914e2b1014a0cc7408973f4431085142ed8

Files changed

index.jschanged
index.jsView
@@ -246,9 +246,9 @@
246246 cb(null, err ?
247247 err.code == 'ENOENT' ? serve404(req)
248248 : servePlainError(500, err.message)
249249 : '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 ?
251251 pull.once([304])
252252 : stats.isDirectory() ?
253253 servePlainError(403, 'Directory not listable')
254254 : cat([

Built with git-ssb-web