{"id":98,"date":"2011-09-02T17:36:02","date_gmt":"2011-09-02T17:36:02","guid":{"rendered":"http:\/\/boulderinformationservices.wordpress.com\/?p=98"},"modified":"2011-09-02T17:36:02","modified_gmt":"2011-09-02T17:36:02","slug":"html5-application-cache-always-caches-your-home-page","status":"publish","type":"post","link":"https:\/\/boulderinformationservices.com\/blog\/html5-application-cache-always-caches-your-home-page\/","title":{"rendered":"HTML5 Application Cache always caches your home page"},"content":{"rendered":"<p>I built a mobile site for a client. One of the neat features is the ability to customize a secondary view of the home page.<\/p>\n<p>When I went to add a cache manifest to the site (so that images, styles, and static pages could be viewed offline) I found that the application cache wouldn&#8217;t let go of the stored home page with its custom view, in spite of my having listed it in the online whitelist section of my cache manifest.<\/p>\n<p>I think that this comment from <a href=\"http:\/\/www.w3.org\/TR\/html5\/offline.html\">the spec<\/a> describes it:<\/p>\n<blockquote><p>&#8220;&#8230; in practice the page that referenced the manifest is automatically cached.&#8221;<\/p><\/blockquote>\n<p>It doesn&#8217;t explain <em>why<\/em> that is the case, but apparently it is. That tells me two things:<\/p>\n<ol>\n<li>Any customizations to the home page should be handled via AJAX, or better yet, be handled on a page <em>other than<\/em> the home page, and<\/li>\n<li>The manifest attribute of the HTML tag should probably only be included on the home page (or any other likely landing pages) &#8212; and not on every page of the site, as I had built it originally.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>I built a mobile site for a client. One of the neat features is the ability to customize a secondary view of the home page. When I went to add a cache manifest to the site (so that images, styles, &hellip; <a href=\"https:\/\/boulderinformationservices.com\/blog\/html5-application-cache-always-caches-your-home-page\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/boulderinformationservices.com\/blog\/wp-json\/wp\/v2\/posts\/98"}],"collection":[{"href":"https:\/\/boulderinformationservices.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/boulderinformationservices.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/boulderinformationservices.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/boulderinformationservices.com\/blog\/wp-json\/wp\/v2\/comments?post=98"}],"version-history":[{"count":0,"href":"https:\/\/boulderinformationservices.com\/blog\/wp-json\/wp\/v2\/posts\/98\/revisions"}],"wp:attachment":[{"href":"https:\/\/boulderinformationservices.com\/blog\/wp-json\/wp\/v2\/media?parent=98"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/boulderinformationservices.com\/blog\/wp-json\/wp\/v2\/categories?post=98"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/boulderinformationservices.com\/blog\/wp-json\/wp\/v2\/tags?post=98"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}