这让我无休止地发疯。我的缓存清单未加载。我不知道为什么不这样做。
标题如下:
<!DOCTYPE html>
<head>
<html manifest="default.appcache">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0"
/>
<link rel="apple-touch-icon" sizes="114x114" href="images/splash/splash-icon.png">
<link rel="apple-touch-startup-image" href="images/splash/splash-screen.png"
media="screen and (max-device-width: 320px)" />
<link rel="apple-touch-startup-image" href="images/splash/splash-screen@2x.png"
media="(max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2)"
/>
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>Ez Names</title>
解决了这个荒谬的问题。cache.manifest 必须在字段外部定义。这么愚蠢的错误。但是,如果有人遇到麻烦,请确保它在正确的位置。