Html5缓存清单无法正常工作
我开始使用离线webapps 我为一个测试站点制作了一个缓存清单,但是我无法让它工作 我尝试在脱机时将index.html重定向到offline.html,但它只是下载index.html并显示它 这是我的缓存清单:Html5缓存清单无法正常工作,html,offline-caching,cache-manifest,Html,Offline Caching,Cache Manifest,我开始使用离线webapps 我为一个测试站点制作了一个缓存清单,但是我无法让它工作 我尝试在脱机时将index.html重定向到offline.html,但它只是下载index.html并显示它 这是我的缓存清单: CACHE MANIFEST FALLBACK: ./ ./offline.html 在index.html中只有一行: Hello this is a test, you are online 这是offline.html <html manifest='cmanif
CACHE MANIFEST
FALLBACK:
./ ./offline.html
在index.html中只有一行:
Hello this is a test, you are online
这是offline.html
<html manifest='cmanifest'>
<head></head>
<body>you are offline now</body>
</html>
好的,我自己找到了解决办法 我少了这一行:
NETWORK:
*
CACHE MANIFEST
#v2
FALLBACK:
./online ./offline.html
NETWORK:
*
NETWORK:
*