[html5] Offline apps

Martin Gainty mgainty at hotmail.com
Sat Apr 9 18:12:44 PDT 2011

# NETWORK Resources are pages that require the user to be online.

#FALLBACK when resource on left is offline serve pages on right 
# static.html will be served if main.py is inaccessible
# offline.jpg will be served in place of all images in images/large/
# offline.html will be served in place of all other .html files
/main.py /static.html
images/large/ images/offline.jpg
*.html /offline.html

i agree which caching to use can be very confusing


Martin Gainty 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
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.
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.

> From: ilkkah at gmail.com
> Date: Sat, 9 Apr 2011 23:16:05 +0300
> To: help at lists.whatwg.org
> Subject: [html5] Offline apps
> Hi,
> I'm trying to figure out a way to make my app work offline. The app is
> relatively simple. There isn't even any javascript, only a few pages
> of html, and the main page, which contains the list of pages. You can
> think of it as a catalog of pages.
> I am now experimenting with cache manifest, and I would really like to
> to implement it in a way that the "offline cache" kicks in only when
> the user is actually offline. Now the problem I'm having is that the
> offline cache (the name of which is confusing), seems to interfere
> when the user is actually online. The result is, that page (the
> homepage of the application) comes from cache, and not from the
> server, and the user doesn't see the data he should be seeing, but
> sees the old cached version.
> So, what I would like to achieve is this: I would like the offline
> cache to be used only when the user is offline. Does this sound
> reasonable? It may be that it's not always clear if the user is
> offline or online, but now the problem is pretty hard as the cache
> interferes "too much".
> Also, in my opinion, caching in the web world is quite complex from
> the start ... Now it seem that cache manifest adds more to this
> complexity. I hope I'm missing the point (I'm new on this, I very well
> might be) and cache manifest can be used so that it starts making
> sense to me :) But now I don't quite understand how to use it right.
> Did this bring any thoughts to anyone?
> Thanks,
> Ilkka
> _______________________________________________
> Help mailing list
> Help at lists.whatwg.org
> http://lists.whatwg.org/listinfo.cgi/help-whatwg.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/help-whatwg.org/attachments/20110409/455804bf/attachment-0003.htm>

More information about the Help mailing list