0

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:

Marda
  • 161
  • 1
  • 11

1 Answers1

1

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.

Erik
  • 2,888
  • 2
  • 18
  • 35
  • I am not sure about the javascript local storage, as I am not a JavaScript user. Could you give more details? In any case, I cannot modify the source of my webpage. – Marda Oct 20 '16 at 12:13
  • 1
    If the page does not support working offline and you cannot change the page, there won't be much you can do. Just to check if understand you. You want to do somethings like: Write a Facebook post while you are offline, close the browser, come back to the website when you are online again und then have your post saved to the server? – Erik Oct 20 '16 at 12:22
  • Something similar to that. Concretely: load my facebook page, switch to work offline in my browser, "write my post", save (somehow) those local modifications, close my browser. Open my browser, load the saved information in the browser, switch to work online again in my browser, and at last, save. In my concrete case, it is (of course) not Facebook, but a webpage generated by a Kallithea server. Notice that the modifications that I introduced into the page are effectively stored if I "save the page". – Marda Oct 20 '16 at 12:36
  • 1
    What you describe is quite a complex procedure (I am not even aware of a webpage that supports this at the moment). The behavior is much more like an app. This is definitely something that the owner of the page has to code. I would still recommend the local storage and to take a look at Progressive Web Apps, which go into the same direction. If you are not the owner of the website, I am not aware of a way to achieve that – Erik Oct 20 '16 at 13:18