fixed bug with application cahe forming on windows

This commit is contained in:
coderaiser 2012-11-05 10:47:21 -05:00
parent a1a7892f05
commit d40d35fecb
3 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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;

View file

@ -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 */