Html 我可以为不同的主机使用应用程序缓存回退吗?
我有一个示例站点:Html 我可以为不同的主机使用应用程序缓存回退吗?,html,offline,fallback,application-cache,Html,Offline,Fallback,Application Cache,我有一个示例站点: /index.html /appcache.manifest /style.css /test.js index.html: <!DOCTYPE HTML> <html manifest="appcache.manifest"> <head> <link type="text/css" rel="stylesheet" href="style.css" /> </head> <body>
/index.html
/appcache.manifest
/style.css
/test.js
index.html:
<!DOCTYPE HTML>
<html manifest="appcache.manifest">
<head>
<link type="text/css" rel="stylesheet" href="style.css" />
</head>
<body>
<div id="map"></div>
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script>window.google && window.google.maps || console.info('Fail');</script>
</body>
</html>
test.js:
window.google = window.google || {};
google.maps = google.maps || {};
console.info('I am work!!!')
当我第一次在本地主机上打开站点而不连接internet时,我在控制台中看到“Fial”
我可以在应用程序缓存清单回退部分使用吗?如果我可以,我做错了什么
回退名称空间和回退条目必须与
这件事本身就表现出来了
如果一个是绝对的,而另一个是相对的(相对于同一个绝对URL),是否允许使用它?@Pacerier我不确定,当你尝试它时会发生什么?@Pacerier我不确定这意味着什么?@Pacerier我知道RFC是什么,我问你指的是什么RFC。有RFC吗
window.google = window.google || {};
google.maps = google.maps || {};
console.info('I am work!!!')