简体   繁体   English

快取无法正常运作

[英]Cache does not work properly

im using HTML5 feature cache manifest and it seems to be not working properly when i am offline and trying to access the webpage. 即时通讯使用HTML5功能缓存清单,当我离线并尝试访问该网页时,它似乎无法正常工作。 Problem is that it tries to get jquery library from google website, although it should be cached. 问题是,尽管它应该被缓存,但它尝试从Google网站获取jquery库。 As result webpage does not work properly due to absence of jquery libraries Here is my webpage: http://www.tud.ttu.ee/web/Evald.Tali/movies/ Supposed to load offline.html when offline 结果是由于缺少jquery库,导致网页无法正常工作这是我的网页: http ://www.tud.ttu.ee/web/Evald.Tali/movies/应该在离线时加载offline.html

Here is my cache file: 这是我的缓存文件:

CACHE MANIFEST
#updated on 22/2/2015 7:10PM
#updated cache, added links to jquery
CACHE:
index.html
CSSfile.css
script.js
jquery-1.11.2.min.js
jquery.mobile-1.4.5.js
jquery.mobile-1.4.5.css
offline.html
https://ajax.googleapis.com/ajax/libs/jquerymobile/1.4.3/jquery.mobile.min.css
https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js
https://ajax.googleapis.com/ajax/libs/jquerymobile/1.4.3/jquery.mobile.min.js
OFFLINE:
/ /offline.html
NETWORK:
*

Thats because the cache works for same origin resources only. 那是因为缓存仅适用于相同的原始资源。 You can't specify external files in your cache manifest. 您不能在缓存清单中指定外部文件。 See the answer here for more information: 有关更多信息,请参见此处的答案:

App cache manifest on CDN? CDN上的应用程序缓存清单?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM