removed cache control of fs resources

This commit is contained in:
coderaiser 2013-03-12 08:42:47 -04:00
parent fbaab1ba9d
commit 953584b847
4 changed files with 6 additions and 5 deletions

View file

@ -30,6 +30,8 @@ would be on top.
* Added update of size on file changing in editor.
* Removed cache control of fs resour
2012.03.01, Version 0.1.9

View file

@ -7,7 +7,7 @@
"html" : true,
"img" : true
},
"cache" : false,
"cache" : true,
"logs" : false,
"show_keys_panel" : true,
"server" : true,

View file

@ -194,15 +194,13 @@
main.sendFile({
name : lSendName,
cache : lConfig.cache,
gzip : true,
request : pReq,
response : pRes
});
}, function(pCallBack){
Minify.optimize(lName, {
gzip : true,
request : pReq,
response : pRes,
callback : pCallBack,
returnName : true
});

View file

@ -192,7 +192,6 @@
lRet = {
'Access-Control-Allow-Origin': '*',
'Content-Type': lType + lContentEncoding,
'last-modified': new Date().toString(),
'Vary': 'Accept-Encoding'
@ -233,6 +232,7 @@
p.response.writeHead(OK, generateHeaders({
name : p.name,
cache : p.cache,
gzip : lGzip,
query : getQuery(p.request)
}) );
@ -271,6 +271,7 @@
lGzip = isGZIP(p.request),
lHead = generateHeaders({
name : p.name,
cache : p.cache,
gzip : lGzip,
query : lQuery
});