←back to thread

Cache

(developer.mozilla.org)
147 points aanthonymax | 2 comments | | HN request time: 0.404s | source
1. h1fra ◴[] No.45129828[source]
Oh nice, I didn't know about that. I wonder if popular libraries like react-query could use it and make a web app fully available offline (readonly) without changing a single line?
replies(1): >>45130283 #
2. ameliaquining ◴[] No.45130283[source]
Making a web app work fully offline requires a Service Worker, if for no other reason than because something has to handle the initial request for the top-level HTML document (and in practice it's much easier to let the Service Worker handle other things too). TanStack doesn't seem to have anything available out of the box that does this; the most commonly used library for this purpose is Google's Workbox, and it should be possible to integrate the two.