How can I cache all pages I visit with Firefox?

Q: How can I cache all pages I visit in a given session with Firefox?

I frequently go to study with my laptop at a library where I don't have internet access (no login). I usually research somethings in the internet the day before and I wanted to make Firefox cache all data from the webpages so that when I'm at the library I can go back to something I read on the internet.

I have these config settings:

browser.cache.check_doc_frequency;3  
browser.cache.disk.capacity;500000  
browser.cache.disk.enable;true  
browser.cache.disk_cache_ssl;true  
browser.cache.frecency_experiment;4  
browser.cache.memory.enable;true (should I set this to false?)  
browser.cache.offline.capacity;512000  
browser.cache.offline.enable;true  
browser.cache.disk_cache_ssl;true 

Even clearing all my cache before, some elements, like images, for some reason are sometimes not stored in the cache, even though they display fine on the tab when the page loads. But if I reload the page, they are stored.

There's an Addon called Session Manager that allows me to save the current session. But it would be best if I could save the whole history, because sometimes I forget to store some page I read that turns out to be important. That's why I want to cache everything (disk space is not a problem), so that in "offline mode" I can go back to them in Firefox.

There are related questions, but they don't provide my solution:
Auto save all visited pages in Firefox
Browse local copies of websites when possible (Firefox with slow internet connection)
Browsing cached pages with no internet connection

Thanks!


Solution 1:

You might not be able to store (cache) every page you visited automatically. But you can save any webpage completely (with CSS, images, etc.) into a single HTML file that can be opened in any browser. This is similar to the MHTML feature in chromium browsers (Google Chrome, Opera, etc).

Addons
01: SingleFile | Save a page as a single HTML file by gildas
02: Save Page WE by DW-dev

Sample Screenshot of this webpage using SingleFile addon

Screenshot

Update...

There is a feature in SingleFile Firefox add-on that will let you automatically save every page you visit.

Screenshot of SingleFile Autosave feature