Repository with sources and generator of https://larlet.fr/david/ https://larlet.fr/david/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.md 2.3KB

title: Blog offline

Sure, browsers cache stuff all the time. The advantages here are in persistence and control. Browser caches are easily overwritten while an application cache is more persistent. Badly configured servers often force the client to refetch things unnecessarily, for example hosting providers you don’t have control over. Service workers, with a full caching API, allow the client full control, and can make smarter decisions about what and when to cache. Many of us have experienced the case where we get on a plane with a page loaded in our browser, only to find that either a browser setting or cache header forces a reload attempt when you then go to read the page, a reload that has no hope of succeeding, and your page is gone.

*Taking the web offline with service workers* (cache)

J’ai bien envie d’expérimenter les possibilités offertes par les services workers ici pour gérer les liens en cache et peut-être même les billets connexes afin de pouvoir lire les articles et leurs dépendances en étant déconnecté. Les outils, bibliothèques et exemples existent ainsi qu’une littérature (cache) abondante (cache) sur le sujet avec des alternatives temporaires (cache). Et ce n’est qu’un début.

P-S : la liste de diffusion offline-first est une vraie mine !

P-P-S : notez que l’usage d’InstantClick sur ce site vous permet déjà d’avoir un cache en passant sur les liens locaux avant de vous déconnecter.