Skip to content

Commit

Permalink
Fix for blank page on Safari reload
Browse files Browse the repository at this point in the history
  • Loading branch information
James P. Javery committed Jan 10, 2014
1 parent 360f9b7 commit 3b27386
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(/ *, */);
Expand Down

0 comments on commit 3b27386

Please sign in to comment.