Closed Stevemoretz closed 3 years ago
There's nothing to install - this API will appear soon in Chrome 87 (and presumably other Chromium-based browsers).
The introduction to the spec has examples on setting and getting values.
Oh so it's really new, I was looking for something backward compatible, what would you suggest it's stupid that right now I send the push information from service worker to server on every page load.I want to send it only when push information changes but I have no idea how to save data whitin a service worker
Indexed DB and Cache Storage are more appropriate for local storage and are available in both Window and Service Worker contexts.
I want to use it on service worker for setting and getting a value would you please tell me how to install, and show me an example?