/plushcap/analysis/hasura/strategies-for-service-worker-caching-d66f3c828433

Strategies for Service Worker Caching for Progressive Web Apps

What's this blog post about?

This post discusses strategies for service worker caching in Progressive Web Apps (PWAs). It highlights issues such as broken deployments and unexpected behavior caused by create-react-app's default service worker inclusion. The article provides solutions like setting appropriate cache headers, not caching bad responses, using clear-site-data kill switch, and unregistering service workers. It also emphasizes the importance of smart caching and pre-deployment strategies to avoid potential issues.

Company
Hasura

Date published
March 15, 2018

Author(s)
Praveen Durairaju

Word count
1250

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.