mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fixed bug with application cahe forming on windows
This commit is contained in:
parent
a1a7892f05
commit
d40d35fecb
3 changed files with 5 additions and 5 deletions
|
|
@ -62,6 +62,8 @@ server.js to cloudcmd.js.
|
|||
* Rewrited sizing of names if they are to
|
||||
long thrue css, from JavaScript.
|
||||
|
||||
* Fixed bug with application cahe forming on windows
|
||||
and linux.
|
||||
|
||||
2012.10.01, Version 0.1.7
|
||||
|
||||
|
|
|
|||
|
|
@ -46,9 +46,7 @@
|
|||
'<title>' + CloudFunc.setTitle() + '</title>');
|
||||
|
||||
if(!srv.Config.appcache)
|
||||
pIndex = WIN32 ?
|
||||
Util.removeStr(pIndex, ' manifest=/cloudcmd.appcache') :
|
||||
Util.removeStr(pIndex, ' manifest="/cloudcmd.appcache"');
|
||||
pIndex = Util.removeStr(pIndex, ' manifest="/cloudcmd.appcache"');
|
||||
|
||||
return pIndex;
|
||||
|
||||
|
|
|
|||
|
|
@ -718,6 +718,7 @@ CloudServer.getReadFileFunc = function(pName){
|
|||
if(pFromCache_o && !pFromCache_o.cache &&
|
||||
CloudServer.Cache.isAllowed)
|
||||
CloudServer.Cache.set(pName, pData);
|
||||
|
||||
/* если кэш есть
|
||||
* сохраняем его в переменную
|
||||
* которая до этого будет пустая
|
||||
|
|
@ -736,8 +737,7 @@ CloudServer.getReadFileFunc = function(pName){
|
|||
}
|
||||
else{
|
||||
console.log(pError.path);
|
||||
if(pError.path !== 'passwd.json')
|
||||
{
|
||||
if(pError.path !== 'passwd.json'){
|
||||
console.log(pError);
|
||||
|
||||
/* sending page not found */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue