- Edge – In development
- Safari – In development
More browser support details can be found here
To make your online only web app (like https://studio.psdetch.com) working offline, your web app needs to use
https for security request.
Very simple. The steps below works on any web apps:
- Follow this guide to install
service-worker.jsat the root folder of your web app. Here, the location (root folder) is important.
- Add following script to
- Add content to
service-worker.js. You can follow the tutorial here. But most situation you can just use following scripts:
You can check what I have used for psdetch.
And that’s it. Your whole web app can now work offline. With
fastest strategy, response is always returned from Cache and updated immediately if possible. This dramatically increased user experience.