Y
Y
yeputons2013-09-10 21:24:06
Browsers
yeputons, 2013-09-10 21:24:06

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

3 answer(s)
V
Vladimir Dubrovin, 2013-09-11
@z3apa3a

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.

Z
ZUZ, 2013-09-10
@ZUZ

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.

E
Evgeny Kunitsyn, 2013-09-12
@LordMerlin

You can also cut headers with proxomitron.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question