How to store the modified content of a webpage when in offline mode, before coming back online again

98 Views Asked by At

After accessing a webpage with dynamic content, I use the "work offline" functionality of my web browser, and then I play around a bit with the page. Later on, I turn back to mode "online" in my browser so that my changes can be appropriately stored in the corresponding server.

What can I do to "save" the information related to the webpage when working offline (so that I can close my browser or reboot my PC) and reopen it later (before turning back to "online" again?

Some extra information:

1

There are 1 best solutions below

4
On

You can save your data to the local storage using javascript.

You can also look into service workers if you have to intercept browser request (but they are not available in all browsers). Google also has a project called "Progressive Web Apps" to deliver offline functionality and faster load time: link.