mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-24 03:05:41 +00:00
chore(main) generateHeaders
This commit is contained in:
parent
26092bc7d1
commit
6b3687bfaf
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue