diff --git a/ChangeLog b/ChangeLog index ea04d92d..62cdcce8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/cloudcmd.js b/cloudcmd.js index 477e578b..838707f7 100644 --- a/cloudcmd.js +++ b/cloudcmd.js @@ -46,9 +46,7 @@ '' + CloudFunc.setTitle() + ''); 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; diff --git a/server.js b/server.js index c6032d29..405d9a0d 100644 --- a/server.js +++ b/server.js @@ -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 */