summaryrefslogtreecommitdiff
path: root/src/node/utils/Minify.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/node/utils/Minify.js')
-rw-r--r--src/node/utils/Minify.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node/utils/Minify.js b/src/node/utils/Minify.js
index 1466ceaf..c5996565 100644
--- a/src/node/utils/Minify.js
+++ b/src/node/utils/Minify.js
@@ -108,7 +108,7 @@ exports.minify = function(req, res, next)
date = new Date(date);
res.setHeader('last-modified', date.toUTCString());
res.setHeader('date', (new Date()).toUTCString());
- if (settings.maxAge) {
+ if (settings.maxAge !== undefined) {
var expiresDate = new Date((new Date()).getTime()+settings.maxAge*1000);
res.setHeader('expires', expiresDate.toUTCString());
res.setHeader('cache-control', 'max-age=' + settings.maxAge);