Permalink
Browse files

handle cache modes properly

  • Loading branch information...
1 parent 913e202 commit 5ac4b556b2cd3d6fa944879739422deacbcd427e @jairajs89 committed Feb 22, 2013
Showing with 3 additions and 3 deletions.
  1. +1 −1 package.json
  2. +2 −2 zerver.js
View
@@ -2,7 +2,7 @@
"author": "Jairaj Sethi <j@jairaj.org> (http://jairaj.org/)",
"name": "zerver",
"description": "client-integrated webapp server",
- "version": "0.7.13",
+ "version": "0.7.14",
"repository": {
"type": "git",
"url": "git://github.com/jairajs89/zerver.git"
View
@@ -146,11 +146,11 @@ function configureZerver (port, apiDir, apiURL, debug, refresh, logging, verbose
});
}
- if (DEBUG) {
+ if ( !PRODUCTION ) {
CACHE_CONTROL = 'no-cache';
}
else if (HAS_MANIFEST) {
- CACHE_CONTROL = 'max-age='+(PRODUCTION?'300':'0');
+ CACHE_CONTROL = 'max-age=300';
}
else {
CACHE_CONTROL = 'max-age=14400';

0 comments on commit 5ac4b55

Please sign in to comment.