Plugins
- PWA (the feature plugin, developed in the open on GitHub as pwa-wp): adds a web app manifest built from your Site Icon and settings, a service worker API for themes and plugins, and offline and 500 error templates. It aims to bring PWA support into WordPress core.
- Several third-party plugins add a manifest, service worker and install prompts with a settings screen. Check when each was last updated and whether it is compatible with your WordPress version before installing.
What to cache safely
| Content | Strategy |
|---|---|
| Theme CSS and JS, uploads | Cache first (they have versions or unique names) |
| Public posts and pages | Network first, with offline fallback |
/wp-admin/, /wp-login.php, REST API with auth | Never cache |
| WooCommerce cart, checkout, my-account | Never cache |
| Pages for logged-in users | Never cache, or the next visitor may see someone else's admin bar |
Pitfalls
- Page caching plugins and CDNs must not cache
/sw.jsfor long, or updates never arrive. - Comment forms and search need the network: show a clear offline message.
- Multilingual plugins: link the right manifest per language, and keep one
id. - Test with a logged-in and a logged-out browser before launch.