<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to create offline webapps on the iPhone</title>
	<atom:link href="http://www.thecssninja.com/javascript/how-to-create-offline-webapps-on-the-iphone/feed" rel="self" type="application/rss+xml" />
	<link>http://www.thecssninja.com/javascript/how-to-create-offline-webapps-on-the-iphone</link>
	<description>All things CSS, JavaScript &#38; HTML</description>
	<lastBuildDate>Sat, 21 Jan 2012 04:46:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>By: Jmv</title>
		<link>http://www.thecssninja.com/javascript/how-to-create-offline-webapps-on-the-iphone/comment-page-4#comment-5260</link>
		<dc:creator>Jmv</dc:creator>
		<pubDate>Sun, 15 Jan 2012 12:36:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=252#comment-5260</guid>
		<description>@Ryan Seddon
(previous post continued)

Hi Mr Ninja

Thank you very much for having looked to my problem.
So for you everything was ok and for me there was an error.
I have tried again my own webbapp after not trying for one week and..
It worked! No error, everything fine! Even as a stand-alone webbapp (with a launch screen and not opening in Safari). Why is it so unpredictable?

I have found an excellent site that give some explaination of what might be happening here. In short: it has to do with the fact that files send by the web server to safari have themselves some &#039;&#039;lifetime&#039;&#039; and are not resend systematically, even if they have changed. Another &#039;&#039;cache&#039;&#039; is involved here, the native browser cache, that is different from the &#039;&#039;appCache&#039;&#039; we are trying to put in place. So although we change our file on the server side, it may not be changed on the iPad-Safari side, at least for some time, depending on how the lifetime is parametered on the server side! The site gives some advice on how to put some more commands on the .htaccess file to makes sure files are resent each time they are requested on the client side. I haved tried these commands, and also forced the safari cache to empty, but since everything was fine it has not changed anything.

This excellent site is: http://diveintohtml5.info/offline.html , see the chapter named: THE FINE ART OF DEBUGGING, A.K.A. “KILL ME! KILL ME NOW!”

The file refresh problem I just described might well be the cause of the problems many other users have experienced, driving them nuts! So I hope this post will help them.

So now i should be happy with my webapp... but not quite. I have implemented some sound effects in an .mp3 file: they work fine online but not offline. Do you have any idea of what might be going on? Maybe caching mp3 is not allowed on ios 4.3? I have found no clear answer on the web.

Any help on the subject would be highly appreciated

Thanks
JMV</description>
		<content:encoded><![CDATA[<p>@Ryan Seddon<br />
(previous post continued)</p>
<p>Hi Mr Ninja</p>
<p>Thank you very much for having looked to my problem.<br />
So for you everything was ok and for me there was an error.<br />
I have tried again my own webbapp after not trying for one week and..<br />
It worked! No error, everything fine! Even as a stand-alone webbapp (with a launch screen and not opening in Safari). Why is it so unpredictable?</p>
<p>I have found an excellent site that give some explaination of what might be happening here. In short: it has to do with the fact that files send by the web server to safari have themselves some &#8221;lifetime&#8221; and are not resend systematically, even if they have changed. Another &#8221;cache&#8221; is involved here, the native browser cache, that is different from the &#8221;appCache&#8221; we are trying to put in place. So although we change our file on the server side, it may not be changed on the iPad-Safari side, at least for some time, depending on how the lifetime is parametered on the server side! The site gives some advice on how to put some more commands on the .htaccess file to makes sure files are resent each time they are requested on the client side. I haved tried these commands, and also forced the safari cache to empty, but since everything was fine it has not changed anything.</p>
<p>This excellent site is: <a href="http://diveintohtml5.info/offline.html" rel="nofollow">http://diveintohtml5.info/offline.html</a> , see the chapter named: THE FINE ART OF DEBUGGING, A.K.A. “KILL ME! KILL ME NOW!”</p>
<p>The file refresh problem I just described might well be the cause of the problems many other users have experienced, driving them nuts! So I hope this post will help them.</p>
<p>So now i should be happy with my webapp&#8230; but not quite. I have implemented some sound effects in an .mp3 file: they work fine online but not offline. Do you have any idea of what might be going on? Maybe caching mp3 is not allowed on ios 4.3? I have found no clear answer on the web.</p>
<p>Any help on the subject would be highly appreciated</p>
<p>Thanks<br />
JMV</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://www.thecssninja.com/javascript/how-to-create-offline-webapps-on-the-iphone/comment-page-4#comment-5187</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Mon, 09 Jan 2012 20:57:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=252#comment-5187</guid>
		<description>Thanks for the post.  Very helpful.  When I read about the Mime type I thought &quot;That&#039;s why it&#039;s not working!&quot;  but alas things are still quirky.
Using an iPad2:
1. I visite your demo page online 
2. I then go offline and visit the demo page again by entering www.thecss... in the navigation bar.  I select the demo page from the drop down and the demo webapp comes up fine.
3. Hit refresh; Safari come up with message.  Cannot Open Page: Safari cannot open the page because it is not connected to the internet.
4. If I enter the whole address in the bar and click &#039;Go&#039; I get the same error message.  
5. If I make a bookmark and click it offline I will get your webpage without the error message.

My application on the otherhand will only continue to work after being disconnected if I do not navigate away from the page.  I can&#039;t bring the page back up with out getting the error message when I have disconnected from the network.

Is there a setting that will instruct safari to look for a cached website before it tries to connect to the internet?  That seems to be the issue.

Thanks, Doug</description>
		<content:encoded><![CDATA[<p>Thanks for the post.  Very helpful.  When I read about the Mime type I thought &#8220;That&#8217;s why it&#8217;s not working!&#8221;  but alas things are still quirky.<br />
Using an iPad2:<br />
1. I visite your demo page online<br />
2. I then go offline and visit the demo page again by entering <a href="http://www.thecss.." rel="nofollow">http://www.thecss..</a>. in the navigation bar.  I select the demo page from the drop down and the demo webapp comes up fine.<br />
3. Hit refresh; Safari come up with message.  Cannot Open Page: Safari cannot open the page because it is not connected to the internet.<br />
4. If I enter the whole address in the bar and click &#8216;Go&#8217; I get the same error message.<br />
5. If I make a bookmark and click it offline I will get your webpage without the error message.</p>
<p>My application on the otherhand will only continue to work after being disconnected if I do not navigate away from the page.  I can&#8217;t bring the page back up with out getting the error message when I have disconnected from the network.</p>
<p>Is there a setting that will instruct safari to look for a cached website before it tries to connect to the internet?  That seems to be the issue.</p>
<p>Thanks, Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Seddon</title>
		<link>http://www.thecssninja.com/javascript/how-to-create-offline-webapps-on-the-iphone/comment-page-4#comment-5156</link>
		<dc:creator>Ryan Seddon</dc:creator>
		<pubDate>Wed, 04 Jan 2012 23:58:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=252#comment-5156</guid>
		<description>@&lt;a href=&quot;#comment-5149&quot; rel=&quot;nofollow&quot;&gt;Brett&lt;/a&gt; -

Thank you! I&#039;ve updated the demo and demo files to add &quot;index.html&quot; to the manifest file so now that link back to &quot;index.html&quot; will work offline correctly.</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-5149" rel="nofollow">Brett</a> -</p>
<p>Thank you! I&#8217;ve updated the demo and demo files to add &#8220;index.html&#8221; to the manifest file so now that link back to &#8220;index.html&#8221; will work offline correctly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Seddon</title>
		<link>http://www.thecssninja.com/javascript/how-to-create-offline-webapps-on-the-iphone/comment-page-4#comment-5155</link>
		<dc:creator>Ryan Seddon</dc:creator>
		<pubDate>Wed, 04 Jan 2012 23:57:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=252#comment-5155</guid>
		<description>@&lt;a href=&quot;#comment-5153&quot; rel=&quot;nofollow&quot;&gt;Jmv&lt;/a&gt; - 

I just tested your web app in firefox, chrome and iOS5 safari, they all work offline and the caching works correctly. I can&#039;t see any problems with your code of manifest file (although your manifest file should now have the extension .appcache over .manifest, but that shouldn&#039;t effect anything).</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-5153" rel="nofollow">Jmv</a> &#8211; </p>
<p>I just tested your web app in firefox, chrome and iOS5 safari, they all work offline and the caching works correctly. I can&#8217;t see any problems with your code of manifest file (although your manifest file should now have the extension .appcache over .manifest, but that shouldn&#8217;t effect anything).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jmv</title>
		<link>http://www.thecssninja.com/javascript/how-to-create-offline-webapps-on-the-iphone/comment-page-4#comment-5153</link>
		<dc:creator>Jmv</dc:creator>
		<pubDate>Wed, 04 Jan 2012 22:33:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=252#comment-5153</guid>
		<description>Hi Mr Ninja, it&#039;s me again.
I have done some more tests I&#039;d like to share with you.
I have put your code in a new domain name, and everything worked very fine online, offline, all the console message were OK.
Then I have added a single line in the 2 html files:

&lt;div class=&quot;code syntax&quot;&gt;
&lt;pre&gt;&lt;span class=&quot;nt&quot;&gt;&lt;meta&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;content=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;yes&quot;&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;name=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;apple-mobile-web-app-capable&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;

This is to make the app open like a stand-alone app, not in SAFARI.
And then everything went wrong: always an error fired after downloading of the cache.
So I suppressed the line, changed the cache revision so it updates the files, but it never worked back again... My safari seems to be stuck in a &#039;&#039;problem state&#039;&#039; from where it won&#039;t go out. Don&#039;t know what to do...
Any advice?
Best regards.</description>
		<content:encoded><![CDATA[<p>Hi Mr Ninja, it&#8217;s me again.<br />
I have done some more tests I&#8217;d like to share with you.<br />
I have put your code in a new domain name, and everything worked very fine online, offline, all the console message were OK.<br />
Then I have added a single line in the 2 html files:</p>
<div class="code syntax">
<pre><span class="nt">&lt;meta</span> <span class="na">content=</span><span class="s">"yes"</span> <span class="na">name=</span><span class="s">"apple-mobile-web-app-capable"</span><span class="nt">&gt;</span>
</pre>
</div>
<p>This is to make the app open like a stand-alone app, not in SAFARI.<br />
And then everything went wrong: always an error fired after downloading of the cache.<br />
So I suppressed the line, changed the cache revision so it updates the files, but it never worked back again&#8230; My safari seems to be stuck in a &#8221;problem state&#8221; from where it won&#8217;t go out. Don&#8217;t know what to do&#8230;<br />
Any advice?<br />
Best regards.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brett</title>
		<link>http://www.thecssninja.com/javascript/how-to-create-offline-webapps-on-the-iphone/comment-page-4#comment-5149</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Wed, 04 Jan 2012 00:42:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=252#comment-5149</guid>
		<description>This totally kicked ass! Thanks for the great article.

I just wanted to share that the article.html page links back to 

http://www.thecssninja.com/demo/offline_webapp/index.html 

instead of just http://www.thecssninja.com/demo/offline_webapp/ 

which causes a &quot;Cannot Open Page&quot; error; no doubt because it thinks that &quot;index.html&quot; is different to &quot;/&quot;. Changing the url back to 

http://www.thecssninja.com/demo/offline_webapp/ 

fixes the problem. you might want to correct this in the link itself :)

thanks again!</description>
		<content:encoded><![CDATA[<p>This totally kicked ass! Thanks for the great article.</p>
<p>I just wanted to share that the article.html page links back to </p>
<p><a href="http://www.thecssninja.com/demo/offline_webapp/index.html" rel="nofollow">http://www.thecssninja.com/demo/offline_webapp/index.html</a> </p>
<p>instead of just <a href="http://www.thecssninja.com/demo/offline_webapp/" rel="nofollow">http://www.thecssninja.com/demo/offline_webapp/</a> </p>
<p>which causes a &#8220;Cannot Open Page&#8221; error; no doubt because it thinks that &#8220;index.html&#8221; is different to &#8220;/&#8221;. Changing the url back to </p>
<p><a href="http://www.thecssninja.com/demo/offline_webapp/" rel="nofollow">http://www.thecssninja.com/demo/offline_webapp/</a> </p>
<p>fixes the problem. you might want to correct this in the link itself :)</p>
<p>thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jmv</title>
		<link>http://www.thecssninja.com/javascript/how-to-create-offline-webapps-on-the-iphone/comment-page-4#comment-5126</link>
		<dc:creator>Jmv</dc:creator>
		<pubDate>Fri, 30 Dec 2011 22:31:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=252#comment-5126</guid>
		<description>Hi Mr Ninja
(previous post continued)
I have done a lot of tests with your files on my website (jmv38.comze.com). Thanks to your console-data-logger I have found the following strange facts, please comment if this sounds correct to you:
- your code makes an offline app from the file &#039;&#039;index.html&#039;&#039;, but on the ipad/safari I can access to the offline page only by calling &#039;&#039;jmv38.comze.com&#039;&#039;, and not &#039;&#039;jmv38.comze.com/index.html&#039;&#039; that returns an &#039;&#039;no connection&#039;&#039; error. 
- then the call back to &#039;&#039;index.html&#039;&#039; from &#039;&#039;article.html&#039;&#039; never works offline. Putting href=&#039;&#039;jmv38.comze.com&#039;&#039; doesnt work either because it seems to call &#039;&#039;jmv38.comze.com/index.html&#039;&#039;...
So I thought I was now ready to make of my own page (a game timer) a webapp. I have done everything as in your code (and copied your console-data-logger with minor modifications), and... &#039;:-(( it doesn&#039;t work! The cache apparently downloads the files, but at the end of the process an error is fired. If I put 1 or 2 html files only in the cache the errors fires much faster. I have used the sniffer to verify that my manifest has the correct mime-type: ok. So I have no idea of what is happening... Could you give a look to the problem? Your help would be very very very much appreciated! Thanks in advance!
Jmv</description>
		<content:encoded><![CDATA[<p>Hi Mr Ninja<br />
(previous post continued)<br />
I have done a lot of tests with your files on my website (jmv38.comze.com). Thanks to your console-data-logger I have found the following strange facts, please comment if this sounds correct to you:<br />
- your code makes an offline app from the file &#8221;index.html&#8221;, but on the ipad/safari I can access to the offline page only by calling &#8221;jmv38.comze.com&#8221;, and not &#8221;jmv38.comze.com/index.html&#8221; that returns an &#8221;no connection&#8221; error.<br />
- then the call back to &#8221;index.html&#8221; from &#8221;article.html&#8221; never works offline. Putting href=&#8221;jmv38.comze.com&#8221; doesnt work either because it seems to call &#8221;jmv38.comze.com/index.html&#8221;&#8230;<br />
So I thought I was now ready to make of my own page (a game timer) a webapp. I have done everything as in your code (and copied your console-data-logger with minor modifications), and&#8230; &#8216;:-(( it doesn&#8217;t work! The cache apparently downloads the files, but at the end of the process an error is fired. If I put 1 or 2 html files only in the cache the errors fires much faster. I have used the sniffer to verify that my manifest has the correct mime-type: ok. So I have no idea of what is happening&#8230; Could you give a look to the problem? Your help would be very very very much appreciated! Thanks in advance!<br />
Jmv</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jmv</title>
		<link>http://www.thecssninja.com/javascript/how-to-create-offline-webapps-on-the-iphone/comment-page-4#comment-5122</link>
		<dc:creator>Jmv</dc:creator>
		<pubDate>Thu, 29 Dec 2011 16:09:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=252#comment-5122</guid>
		<description>Hi Mr Ninja
Thanks a lot for all your great work and help!
I ve installed a launch screen to your demo app on my iPad (ios4.2.1)
I have the very same problem as many people above: works fine online/offline but if I 1/ go offline 2/suppress the screen in safari , then I get the message &#039;&#039; cannot acess bla bla bla... &#039;&#039; when i restart the webapp, which makes it not very usefull...
Unless I missed a line, I think you answer has always been up to now: &#039;&#039; i don&#039;t have this problem with my IOS version&#039;&#039;. Is it still the case or have you experienced the problem and found a solution? what ios version do you use?
Thank in advance for you enlightments.</description>
		<content:encoded><![CDATA[<p>Hi Mr Ninja<br />
Thanks a lot for all your great work and help!<br />
I ve installed a launch screen to your demo app on my iPad (ios4.2.1)<br />
I have the very same problem as many people above: works fine online/offline but if I 1/ go offline 2/suppress the screen in safari , then I get the message &#8221; cannot acess bla bla bla&#8230; &#8221; when i restart the webapp, which makes it not very usefull&#8230;<br />
Unless I missed a line, I think you answer has always been up to now: &#8221; i don&#8217;t have this problem with my IOS version&#8221;. Is it still the case or have you experienced the problem and found a solution? what ios version do you use?<br />
Thank in advance for you enlightments.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gerry Straathof</title>
		<link>http://www.thecssninja.com/javascript/how-to-create-offline-webapps-on-the-iphone/comment-page-4#comment-5061</link>
		<dc:creator>Gerry Straathof</dc:creator>
		<pubDate>Thu, 22 Dec 2011 01:16:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=252#comment-5061</guid>
		<description>The message that comes up when you visit a cached site is to increase the cache storage of your device, not the individual site. I&#039;ve had.mine go up to 50M when doing beta testing. if you installed the Kindle reader you will also get a confirmation.

The individual site allowance is above 5M on ios5, but i am not sure how much more. the highest mine has gone is 9.75M for a website magazine that was part of a class project.

I use a php file which builds a manifest file for a site using everything in the folder. it has made it much easier to control changing documents.

I think the kindle reader and new York times(?) use sql to hold their downloaded data, but have notdirected their codes behaviour with chrome or safari audits...</description>
		<content:encoded><![CDATA[<p>The message that comes up when you visit a cached site is to increase the cache storage of your device, not the individual site. I&#8217;ve had.mine go up to 50M when doing beta testing. if you installed the Kindle reader you will also get a confirmation.</p>
<p>The individual site allowance is above 5M on ios5, but i am not sure how much more. the highest mine has gone is 9.75M for a website magazine that was part of a class project.</p>
<p>I use a php file which builds a manifest file for a site using everything in the folder. it has made it much easier to control changing documents.</p>
<p>I think the kindle reader and new York times(?) use sql to hold their downloaded data, but have notdirected their codes behaviour with chrome or safari audits&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Seddon</title>
		<link>http://www.thecssninja.com/javascript/how-to-create-offline-webapps-on-the-iphone/comment-page-4#comment-5060</link>
		<dc:creator>Ryan Seddon</dc:creator>
		<pubDate>Thu, 22 Dec 2011 00:38:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=252#comment-5060</guid>
		<description>@&lt;a href=&quot;#comment-5057&quot; rel=&quot;nofollow&quot;&gt;Jorge&lt;/a&gt; - 

Your hosted demo is missing a reference to the vomzom.svg file, if any file is missing that&#039;s declared in the manifest it will fail.

&lt;blockquote&gt;All the files loaded by the initial index must be in the manifest?&lt;/blockquote&gt;

No, just the files you wish to cache so they&#039;re available offline.

&lt;blockquote&gt;If I have a video added to the manifest it fails or it just doesn’t cache it?&lt;/blockquote&gt;

I believe iOS5 may allow videos and audio to be cached offline, before that it didn&#039;t work.

&lt;blockquote&gt;Are you all sure about the 5mb limit?. I have been trying and think that I have seen a dialog asking me to let the app grow the mb limit.&lt;/blockquote&gt;

I&#039;m not a 100% sure this is what other people have found to be the case, there may very well be a prompt to increase storage size.

&lt;blockquote&gt;Is there any issue related to the app being in fullscreen mode?&lt;/blockquote&gt;

Fullscreen mode should be fine, if it&#039;s a UIWebView inside an app offline caching is not available.</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-5057" rel="nofollow">Jorge</a> &#8211; </p>
<p>Your hosted demo is missing a reference to the vomzom.svg file, if any file is missing that&#8217;s declared in the manifest it will fail.</p>
<blockquote><p>All the files loaded by the initial index must be in the manifest?</p></blockquote>
<p>No, just the files you wish to cache so they&#8217;re available offline.</p>
<blockquote><p>If I have a video added to the manifest it fails or it just doesn’t cache it?</p></blockquote>
<p>I believe iOS5 may allow videos and audio to be cached offline, before that it didn&#8217;t work.</p>
<blockquote><p>Are you all sure about the 5mb limit?. I have been trying and think that I have seen a dialog asking me to let the app grow the mb limit.</p></blockquote>
<p>I&#8217;m not a 100% sure this is what other people have found to be the case, there may very well be a prompt to increase storage size.</p>
<blockquote><p>Is there any issue related to the app being in fullscreen mode?</p></blockquote>
<p>Fullscreen mode should be fine, if it&#8217;s a UIWebView inside an app offline caching is not available.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

