TanStackT
TanStack12mo ago
3 replies
full-green

Persisting cache in localstorage/idb so site can work offline

I know its possible with tanstack query to add a persister that can do this, but can this be done with starts build in route caching? the holy grail for me would be for the entire site to work offline once a simple service worker is added to cache the html/assets etc. All of the server side json would just come from the offline cache and when the connection is reestablished it would be refetched

I think I heard Tanner talk about this in a podcast months ago but not sure if anything got done or if its even possible
Was this page helpful?