Note that there are some explanatory texts on larger screens.

plurals
  1. POCan't get HTML5 Cache Manifest working
    primarykey
    data
    text
    <p>I've build a small web app for the iPad which I was hoping to be able to run offline by using the manifest cache but I can;t get it to work.</p> <p>I am serving the cache-manifest file as a MVC view and setting the content type to text/cache-manifest. The manifest get's processed but doesn't add any items to the cache. Using Firebug I've tried to view the window.applicationcache but it's empty. </p> <p>Must be missing something obvious!</p> <p>The head of my HTML page looks like this </p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html manifest="/graduates/manifest/"&gt; &lt;head&gt; </code></pre> <p>And this is the Manifest, I've tried without relative paths and still can't get it working.</p> <pre><code>&lt;%@ Page Title="" Language="VB" Inherits="System.Web.Mvc.ViewPage" %&gt; &lt;% HttpContext.Current.Response.ContentType = "text/cache-manifest"%&gt; CACHE MANIFEST #v1 /common/styles/grad.css /img/graduateapp/apple-touch-icon.png /img/graduateapp/background.jpg /img/graduateapp/facebookQR.png /img/graduateapp/facebooksmall.png /img/graduateapp/twitterQR.png /img/graduateapp/twittersmall.png </code></pre> <p>SOLUTION : Had a Carriage return on the first line so wasn't working properly, top of manifest is now</p> <pre><code>&lt;%@ Page Title="" Language="VB" Inherits="System.Web.Mvc.ViewPage" %&gt; &lt;% HttpContext.Current.Response.ContentType = "text/cache-manifest"%&gt;CACHE MANIFEST </code></pre> <p>Had to add all my .js files as well as this caused problems even with a wifi connection!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload