Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

HAS_MANIFEST var must be initialised before use

  • Loading branch information...
commit f05f8d57b2bf893f260b9137e3c42d1fcd042005 1 parent ce0217d
@jairajs89 authored
Showing with 11 additions and 11 deletions.
  1. +1 −1  package.json
  2. +10 −10 zerver.js
View
2  package.json
@@ -2,7 +2,7 @@
"author": "Jairaj Sethi <j@jairaj.org> (http://jairaj.org/)",
"name": "zerver",
"description": "client-integrated webapp server",
- "version": "0.6.8",
+ "version": "0.6.9",
"repository": {
"type": "git",
"url": "git://github.com/jairajs89/zerver.git"
View
20 zerver.js
@@ -116,16 +116,6 @@ function configureZerver (port, apiDir, apiURL, debug, refresh, manifests, produ
updateLastModifiedTime();
- if (DEBUG) {
- CACHE_CONTROL = 'no-cache';
- }
- else if (HAS_MANIFEST) {
- CACHE_CONTROL = 'max-age=0';
- }
- else {
- CACHE_CONTROL = 'max-age=14400';
- }
-
if (manifests) {
manifests.split(',').forEach(function (path) {
if (!path[0] !== '/') {
@@ -139,6 +129,16 @@ function configureZerver (port, apiDir, apiURL, debug, refresh, manifests, produ
});
}
+ if (DEBUG) {
+ CACHE_CONTROL = 'no-cache';
+ }
+ else if (HAS_MANIFEST) {
+ CACHE_CONTROL = 'max-age=0';
+ }
+ else {
+ CACHE_CONTROL = 'max-age=14400';
+ }
+
fetchAPIs();
http.globalAgent.maxSockets = 50;
Please sign in to comment.
Something went wrong with that request. Please try again.