If you're having trouble with your web app offline content, here are some steps for troubleshooting.
- Update in5to get the latest service worker.
- Since Application Cache was deprecated, in5 has included an improved service worker for caching that only updates the web app when content has been updated. This functionality is similar to the old Application Cache functionality.
- Make sure that your content has been uploaded to a secured server (https as opposed to http).
- If you have both an http version and an https version, make sure that the http version redirects to the https version.
- A secure protocol may not work if you're using a self-signed certificate for your secured server.
- Make sure that you don't have any problems with redirects that would not permit the service worker to run.
- Here's how you can check:
- Navigate to the URL of the web app in Chrome
- Right-click and select Inspect
- Click on the Console tab to view any errors
- If you see an error, you would need to resolve it on your server.
- Here's how you can check:
- If you're not seeing your updated content, make sure that you restart your web app twice. The way the in5.serviceworker.js file for a web app operates is that first restart makes the updated content download in the background. Then the second restart is when the update becomes visible.