【问题标题】:Why isn't my cache manifest kicking in?为什么我的缓存清单没有启动?
【发布时间】:2012-12-07 16:18:36
【问题描述】:

这让我快疯了。我的缓存清单没有加载。我不知道为什么不。

标题如下:

<!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>

【问题讨论】:

  • 嗨@das_boot。链接往往会腐烂。因此,为了确保在您解决网站上的问题后该问题对访问者也有价值,您能否确保缓存清单的相关片段在您的问题中?
  • 示例中包含缓存清单。
  • 页面托管在哪个网络服务器上(apache/iis/nginx/etc)?
  • Hostgator。我认为是 Apache?

标签: html cache-manifest


【解决方案1】:

解决了这个荒谬的问题。 cache.manifest 必须在字段之外定义。如此愚蠢的错误。但如果有人遇到问题,请确保它在正确的位置。

【讨论】:

    猜你喜欢
    • 2015-06-03
    • 1970-01-01
    • 2016-07-04
    • 1970-01-01
    • 1970-01-01
    • 2015-06-16
    • 2011-05-17
    • 2014-07-22
    • 2012-12-16
    相关资源
    最近更新 更多