mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
appcache testing
This commit is contained in:
parent
598e1f2a8a
commit
3411c35025
2 changed files with 10 additions and 4 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
/* если это неизвестный тип файла -
|
||||
* высылаем его просто как текст
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue