appcache testing

This commit is contained in:
coderaiser 2012-06-13 14:51:10 +00:00
parent 598e1f2a8a
commit 3411c35025
2 changed files with 10 additions and 4 deletions

View file

@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<!-- moblie first design -->
<!-- mobile first design -->
<meta content="width=device-width,initial-scale=1" name="viewport" />
<title>Cloud Commander</title>
@ -14,9 +14,7 @@
<script async src=http://dl.dropbox.com/u/74212301/mnemonia/js/prefixfree.min.js></script>
<script async src="//modernizr.com/downloads/modernizr-2.5.3.js"></script>
<script async src="http://dl.dropbox.com/u/78163899/mnemonia/js/css3-mediaqueries.js"></script>
<script async src="dist/html5shiv.js"></script>
<!--[if lt IE 9]>
<![endif]-->
<script async src="dist/html5shiv.js"></script>
-->
</head>
<body>

View file

@ -120,6 +120,9 @@ CloudServer.Minify={
setJSAllowed :(function(pAllowed){
this._jsAllowed=pAllowed;
}),
setHtmlAllowed :(function(pAllowed){
this._htmlAllowed=pAllowed;
}),
jsScripts : function(){
if(this._jsAllowed){
@ -177,6 +180,8 @@ CloudServer.init=(function(){
/* Переменная в которой храниться кэш*/
CloudServer.Cache.setAllowed(true);
CloudServer.Minify.setJSAllowed(true);
CloudServer.Minify.setStyleAllowed(true);
CloudServer.Minify.setHtmlAllowed(true);
/* Если нужно минимизируем скрипты */
CloudServer.Minify.jsScripts();
CloudServer.Minify.cssStyles();
@ -224,6 +229,9 @@ CloudServer.generateHeaders = function(pName, pGzip){
lType='application/json';
else if(CloudFunc.checkExtension(pName,'html'))
lType='text/html';
else if(CloudFunc.checkExtension(pName,'appcache'))
lType='text/cache-manifest';
/* если это неизвестный тип файла -
* высылаем его просто как текст
*/