我的清单如下:
CACHE MANIFEST
# Cache manifest version 0.0.5
http://www.mywebsite.com/appfolder/app/detail.html
http://www.mywebsite.com/appfolder/app/index.html
http://www.mywebsite.com/appfolder/app/list.html
http://www.mywebsite.com/appfolder/css/style.css
http://www.mywebsite.com/appfolder/src/iscroll.js
http://www.mywebsite.com/appfolder/js/jquery-1.5.1.min.js
http://www.mywebsite.com/appfolder/thumbs/1872A.jpg
http://www.mywebsite.com/appfolder/thumbs/1913.jpg
http://www.mywebsite.com/appfolder/thumbs/1916.jpg
http://www.mywebsite.com/appfolder/thumbs/1925.jpg
http://www.mywebsite.com/appfolder/carsimages/1872A_1.jpg
http://www.mywebsite.com/appfolder/carsimages/1872A_2.jpg
NETWORK:
# All URLs that start with the following lines
# are whitelisted.
CACHE:
# Additional items to cache.
FALLBACK:
该应用程序在在线状态下运行顺畅,但一旦离线,我会收到以下错误消息:“Myappname无法打开,因为它未连接到互联网”(在iPad上“添加到主屏幕”视图中)和“Safari无法打开页面,因为它未连接到互联网”(在同一iPad的Safari视图中)。
我已经采取的步骤: 通过将以下内容添加到我的.htaccess文件中,确保清单以正确的内容类型提供:
AddType text/cache-manifest .manifest
有什么想法,为什么这个不起作用?