chore(main) generateHeaders

This commit is contained in:
coderaiser 2014-04-03 03:27:06 -04:00
parent 26092bc7d1
commit 6b3687bfaf

View file

@ -218,16 +218,16 @@
header = {
'Access-Control-Allow-Origin' : '*',
'Content-Type' : type + encoding,
'last-modified' : '' + new Date(),
'Last-Modified' : '' + new Date(),
'Vary' : 'Accept-Encoding'
};
cmp = Util.strCmp(ext, '.appcache');
if (!cmp && p.cache)
header['cache-control'] = 'max-age=' + 31337 * 21;
header['Cache-Control'] = 'max-age=' + 31337 * 21;
if (p.gzip)
header['content-encoding'] = 'gzip';
header['Content-Encoding'] = 'gzip';
}
return header;