Permalink
Browse files

Fix for blank page on Safari reload

  • Loading branch information...
1 parent 360f9b7 commit 3b27386345dcfbb7f17774ef866bb2b0bfd02ba5 @jjavery jjavery committed Jan 10, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 index.js
View
@@ -33,8 +33,8 @@ function fresh(req, res) {
// unconditional request
if (!modifiedSince && !noneMatch) return false;
- // check for no-cache cache request directive
- if (cc && cc.indexOf('no-cache') !== -1) return false;
+ // check for no-cache or max-age=0 cache request directive
+ if (cc && (cc.indexOf('no-cache') !== -1 || cc.indexOf('max-age=0') !== -1)) return false;
// parse if-none-match
if (noneMatch) noneMatch = noneMatch.split(/ *, */);

0 comments on commit 3b27386

Please sign in to comment.