Answer the question
In order to leave comments, you need to log in
Firefox: how to force open tabs to be cached so they don't auto-refresh on browser restart?
The problem is this: if I open ten habr articles in FF, wait for them to load, close FF, disconnect from the Internet, open FF and switch to the previously loaded tab (even the title is saved), then FF will try to download it from the Internet and, Of course, he won't succeed. Moreover, the same effect can be observed if I switch to a tab a couple of hours after I opened it (while FF did not restart).
How can the browser be weaned from this behavior? Desired behavior: opened the tab once - cached it and never reloads it again until either I ask with the F5 button, or until some script on the page asks for it.
Answer the question
In order to leave comments, you need to log in
Habrahabr gives the following line in the HTTP response headers:
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
it explicitly prohibits the browser from caching the page.
I have not seen plugins that filter exactly the server response (but you can search). You can change the behavior by filtering this string, for example using a proxy server. The corresponding 3proxy setting under Windows, for example, will look something like this:
plugin PCREPlugin.dll pcre_plugin
auth iponly
pcre_rewrite srvheader allow "Cache-Control:no-store, no-cache, must-revalidate, post-check=0, pre-check=0" "Cache-Control: max-age=100000" * * habrahabr.ru
proxy -i127.0.0.1 -n -p3128
save as 3proxy.cfg in the same directory as 3proxy.exe and PCREPlugin.dll, run 3proxy.exe --install to install as a service, set proxy 127.0.0.1 port 3128 in FF settings. This is a PoC configuration, if you are interested I will help you set up a working one.
By the way, yes! Runs incredibly! As far as I remember, this was not the case before version 10 (or 4).
I don’t know how IE behaves now, but it was caching that always pleased me, incl. the ability to save an open page to disk already with a dead Internet.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question