PWA (Progressive Web App)
A site that can be installed, work offline and receive notifications, using a service worker and a manifest.
Analogy Mental model
A website wearing an app's coat. It looks and behaves like something from a store, without the store.
In practice What you actually do
Cache the shell and the critical assets, provide a manifest with icons, and make sure the installable version never diverges from the indexed one. Test the update path, because an aggressive cache serves last month's site.
Where people get burned Pitfalls
Offline content that disagrees with online content is a correctness problem before it is a search problem. A service worker that will not let go of an old cache is the hardest bug to explain to a customer.
This entry was written in English from the Chinese original, not machine-translated. Read the Chinese version →