There are many reasons to add a service worker to WordPress: for example you may want to improve caching or add web push notifications. Let’s see how to do that.Continue reading “How to add a service worker to WordPress”
Are you stuck with an old version of the service worker or your imported scripts are not being updated as you expect? This guide shows you how to ensure that your service worker and the imported scripts are updated in a timely manner. Continue reading “Updating the service worker”
If you have problems with web push or with other service worker based technologies on Firefox, then you probably want to use the Firefox developer tools for debugging. Continue reading “Debugging service workers and push with Firefox”
In the last months we have rolled out new notification features and other performance improvements.
If you use Pushpad Pro, in order to receive the update, you should make a small change to your service worker. Continue reading “Update the Pushpad service worker to the latest version”
If you work with the Push API or service workers in general you know that debugging can be a pain. Fortunately Chrome has two hidden gems that can save you many headaches.
In order for the update to take effect you need to:
Pushpad is a service for web push notifications. In order to add push notifications to their websites, our customers need to install the service worker that we provide on their websites.
Initially we just asked customers to copy and paste the whole content of the service worker. However this meant that for every update we made to the script, our customers had to take action.
Then we discovered
importScripts Continue reading “Service worker: importScripts never updates scripts”