How to allow save data of pages and load ones after restart?

User Help for Mozilla Firefox
Post Reply
Alexander3XL
Posts: 3
Joined: September 10th, 2019, 11:29 pm

How to allow save data of pages and load ones after restart?

Post by Alexander3XL »

Hello!
I want all the pages (tabs) to open from the cache immediately after launching the browser, without reloading them. How to do it?
Currently, a small number of sites remain open (for example, if you turn off the Internet and start the browser).
Thank you.
kerft
Posts: 585
Joined: January 30th, 2019, 9:38 am

Re: How to allow save data of pages and load ones after rest

Post by kerft »

I don't know a way to make pages more likely to load from cache instead of internet. Maybe setting browser.cache.check_doc_frequency to 2. http://kb.mozillazine.org/Browser.cache ... _frequency
To have all saved session pages reload at once instead of when you click them, go to URL about:config, set browser.sessionstore.restore_on_demand to false and browser.sessionstore.restore_tabs_lazily to false. The browser may freeze while it is loading all tabs but it should unfreeze when it is done.
Alexander3XL
Posts: 3
Joined: September 10th, 2019, 11:29 pm

Re: How to allow save data of pages and load ones after rest

Post by Alexander3XL »

Many thanks for your answer! This did not solve completely my problem, but I would hope it got better!)
Brummelchen
Posts: 4480
Joined: March 19th, 2005, 10:51 am

Re: How to allow save data of pages and load ones after rest

Post by Brummelchen »

create a service worker with cache first then net, or net then cache. you can find example code on MDN
https://developer.mozilla.org/

Or get any decent offline grabber. most of them are not free.
Alexander3XL
Posts: 3
Joined: September 10th, 2019, 11:29 pm

Re: How to allow save data of pages and load ones after rest

Post by Alexander3XL »

Hello Brummelchen!
I use plugin "Save Page WE" as offline grabber. How can I make the browser itself held pages? Are there ready-made solutions based on "a service worker"? Ideally, it would be good to extend this functionality to the mobile Firefox.
It is very convenient after starting the browser to see open pages without waiting for them to refresh, especially if a connection is slow and the pages are large.
For example, a page that does not want to open after restarting the browser if there is no connection. https://wiki.st.com/stm32mpu/wiki/SDK_f ... stribution
Post Reply