Firefox – How to disable temporally the Firefox cache

firefox

I have a router that whenever it lost the connection it uses Permanently Moved (301) HTTP responses and literally I'm unable to access that link in Firefox. In Chrome/ium I can type the url then press Ctrl + Enter or opening the Developers Tool and disable the cache there in the options. Sadly, I haven't found a way which Firefox can imitate such behavior.

For now I'm appending ?a=1 at the end of the url to circumvent this problem, but is not desirable since if I click the url coming from another page I'll be in the same situation again.

EDIT: Private Browsing do some of this magic, but is actually Overkill for my proposes, since it kills the cookies.

What is Permanetly Moved (301) in the HTTP protocol?

For the answers/comments I'm getting seems that there is a misunderstanding of what is happening so I'm going to dwell more specifically in the topic.

Whenever I type http://superuser.com Firefox uses the cache (I can't press F5/Ctrl + F5 since I'm not in any page now) and see that the URL was Permanently Moved hence, it never goes to http://superuser.com but to http://deviceip/DeviceStatus_Warning.htm without delay nor stop. This question requires the understanding of both, the HTTP protocol and Firefox.

The HTTP response status code 301 Moved Permanently is used for permanent redirection, meaning current links or records using the URL that the 301 Moved Permanently response is received for should be updated to the new URL provided in the Location field of the response.

I doubt the "feature" can be disabled since it's a ISP modified firmware, but here it goes:

Maker: Huawei
Model: HG530
Software release: V100R001B025 Codetel
Firmware Release: 3.12.8.20

I have Telnet, HTTP and FTP access to the router, but I haven't seen anything similar:

TELNET commands available:

HG530> help
Valid commands are:
sys             exit            diag            ether             
wan             etherdbg        tcephydbg       ip                
bridge          dot1q           pktqos          show              
set             lan                                  

Best Answer

You can use the Developer tools to temporally disable the cache, with a caveat.

  1. Open the Developer tools (F12 or Ctrl-Shift-K)
  2. Search for toolbox options
  3. In the "Advanced settings" section, look for "Disable HTTP Cache (when toolbox is open)"

As you have noticed, this temporally disable the cache while you have the toolbox open, for the tab where the toolbox is open. It more or less covers your use case.

There's a bug/feature request asking for a more discoverable way.

Related Question