<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<pre class="prettyprint"><span class="com"># NETWORK Resources are pages that require the user to be online.</span><span class="pln"><br>NETWORK</span><span class="pun">:</span><span class="pln"><br>login</span><span class="pun">.</span><span class="pln">php<br></span><span class="pun">/</span><span class="pln">myapi<br>http</span><span class="pun">:</span><span class="com">//api.twitter.com</span><span class="pln"><br><br>#FALLBACK </span><span class="pln">when resource on left is offline</span> <span class="pln">serve pages on right <br></span><span class="com"># static.html will be served if main.py is inaccessible</span><span class="pln"><br></span><span class="com"># offline.jpg will be served in place of all images in images/large/</span><span class="pln"><br></span><span class="com"># offline.html will be served in place of all other .html files</span><span class="pln"><br>FALLBACK</span><span class="pun">:</span><span class="pln"><br></span><span class="str">/main.py /</span><span class="kwd">static</span><span class="pun">.</span><span class="pln">html<br>images</span><span class="pun">/</span><span class="pln">large</span><span class="pun">/</span><span class="pln"> images</span><span class="pun">/</span><span class="pln">offline</span><span class="pun">.</span><span class="pln">jpg<br></span><span class="pun">*.</span><span class="pln">html </span><span class="pun">/</span><span class="pln">offline</span><span class="pun">.</span><span class="pln">html<br><br>i agree which caching to use can be very confusing<br><br>http://www.html5rocks.com/tutorials/appcache/beginner/#toc-manifest-file-creating<br><br>hth<br></span></pre>Martin Gainty <br>______________________________________________ <br>Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité<br><div> <br>Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.<br></div><pre>Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.</pre><br><br><br><br><br>> From: ilkkah@gmail.com<br>> Date: Sat, 9 Apr 2011 23:16:05 +0300<br>> To: help@lists.whatwg.org<br>> Subject: [html5] Offline apps<br>> <br>> Hi,<br>> <br>> I'm trying to figure out a way to make my app work offline. The app is<br>> relatively simple. There isn't even any javascript, only a few pages<br>> of html, and the main page, which contains the list of pages. You can<br>> think of it as a catalog of pages.<br>> <br>> I am now experimenting with cache manifest, and I would really like to<br>> to implement it in a way that the "offline cache" kicks in only when<br>> the user is actually offline. Now the problem I'm having is that the<br>> offline cache (the name of which is confusing), seems to interfere<br>> when the user is actually online. The result is, that page (the<br>> homepage of the application) comes from cache, and not from the<br>> server, and the user doesn't see the data he should be seeing, but<br>> sees the old cached version.<br>> <br>> So, what I would like to achieve is this: I would like the offline<br>> cache to be used only when the user is offline. Does this sound<br>> reasonable? It may be that it's not always clear if the user is<br>> offline or online, but now the problem is pretty hard as the cache<br>> interferes "too much".<br>> <br>> Also, in my opinion, caching in the web world is quite complex from<br>> the start ... Now it seem that cache manifest adds more to this<br>> complexity. I hope I'm missing the point (I'm new on this, I very well<br>> might be) and cache manifest can be used so that it starts making<br>> sense to me :) But now I don't quite understand how to use it right.<br>> <br>> Did this bring any thoughts to anyone?<br>> <br>> Thanks,<br>> Ilkka<br>> _______________________________________________<br>> Help mailing list<br>> Help@lists.whatwg.org<br>> http://lists.whatwg.org/listinfo.cgi/help-whatwg.org<br>                                        </body>
</html>