Docs • Service Worker • JeetPush Cloud
Service worker setup (must-do)
Web Push requires a service worker on the website root. If this is wrong, subscriptions will fail.
Rule
Place file on the root
The file must be accessible like this:
https://YOURDOMAIN.com/jeetpush-sw.js
Not inside /wp-content/ or any folder.
Verify
How to confirm
- Open the URL directly and confirm it loads.
- Chrome → DevTools → Application → Service Workers
- Check “scope” is your root domain.
Common mistakes
What breaks subscriptions
- Service worker file returns 404/403
- Wrong MIME type (server misconfigured)
- HTTP instead of HTTPS