json-to-go doesn't really needs internet access once the website has loaded in browser. And sometimes people don't have internet access but they still want to use json-to-go. As this tool is hosted on Github pages so we can't really set Cache-Control headers but we can use service workers.
So, I added a service worker with Cache First strategy. There are plenty of browsers that support service workers and once this service worker is installed they'll be able to use json-to-go even when they don't have internet access.
I excluded analytics.js from the list of files that should be cached because it'll require internet access.
Hi,
json-to-go
doesn't really needs internet access once the website has loaded in browser. And sometimes people don't have internet access but they still want to usejson-to-go
. As this tool is hosted on Github pages so we can't really setCache-Control
headers but we can use service workers.So, I added a service worker with Cache First strategy. There are plenty of browsers that support service workers and once this service worker is installed they'll be able to use
json-to-go
even when they don't have internet access.I excluded
analytics.js
from the list of files that should be cached because it'll require internet access.Regards Ishan Jain