添加到主屏幕时无法缓存iPad

时间:2013-09-09 10:42:17

标签: ipad caching ios6 web cache-manifest

我一直致力于一个应该离线运行的网络应用程序,可以通过点击主屏幕上的图标(iPad iOS 6.1.3)进行访问。问题是我无法缓存所有必要的文件。这是我的cache.manifest文件(路径正确,没有类型):

CACHE MANIFEST
CACHE:
index.php
first.html
second.html
images/forward.png
images/backward.png
images/info.png
style/light.otf
style/main.css
scripts/main.js
NETWORK:
*

包含的HTML是下一页。所以,我是对的:我必须在index.php中包含所有必需的.php,.html,.css,.png等,这是我的切入点。我读了一些关于这个的文章,还创建了.htaccess文件:

AddType text/cache-manifest .manifest

以HTML格式实施:

<html manifest="cache.manifest">

错误:

"...because it is not connected to the internet"

我被困在这里几天了。任何帮助都会很棒! 提前致谢

0 个答案:

没有答案