mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-24 03:05:41 +00:00
removed cache control of fs resources
This commit is contained in:
parent
fbaab1ba9d
commit
953584b847
4 changed files with 6 additions and 5 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
"html" : true,
|
||||
"img" : true
|
||||
},
|
||||
"cache" : false,
|
||||
"cache" : true,
|
||||
"logs" : false,
|
||||
"show_keys_panel" : true,
|
||||
"server" : true,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue