Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to clear only 301-redirects from Firefox's cache? CTRL+F5 doesn't do the job since you just reload the target without caching but do not clear the cached redirect.

An option to disable caching of those redirects completely would be fine, too - but some way (possibly through an extension) to remove those cached redirects would be better.

share|improve this question
    
Use 302 or 307 if you want to redirect temporarily... 301 is for permanent redirection... –  inf3rno Dec 7 '13 at 8:56
    
I know that. But sometimes you forget to change that or your framework uses one (for example, Flask does so when redirecting from /foo to /foo/) –  ThiefMaster Dec 7 '13 at 12:02
    
Hmm most of the frameworks turn off cache by debug mode, or you can turn it off manually if you add no-cache, no-store headers. That will prevent cache by 301 headers too, if I am right. If it was cached recently, you can clear the recent cache by history/clear recent history. If it was not recent, you can find the site in the history, click on it with the right button and choose delete this page or forget about this site. Theoretically all of these are working, in practice I never used them to remove a redirection from the cache... –  inf3rno Dec 7 '13 at 18:17

3 Answers 3

Locate the site in the History sidebar. Right-click it and select "Forget about this site".

No addons required!

share|improve this answer
    
Didn't work for me. –  Dave L. Jan 9 at 17:26
    
Didn't work for me, too. –  Frozen Flame May 17 at 4:20
2  
Worked for me, thanks! (; –  Francisco Presencia Jul 5 at 19:25

The only solution I've found so far - short of clearing the whole cache - is the "Disable entire cache" toggle in Web Developer Toolbar. Once disabled you hard reload the page and you get the new version (remember to uncheck the toggle after you're done).

share|improve this answer
    
I see a "Disable DNS cache" option, and that seems to do what I want. Very annoying this caching! Thanks for the tip. –  SPRBRN Apr 24 '13 at 13:58

Here is the simple solution for this, in Firefox:

Menu-> Options -> Advanced ->Network -> Clear Now

and its done

share|improve this answer
    
Nice! Unlike my solution, this works even if your only visit to the site is a redirect to an error page, because those don't appear in the history and you have nothing to click "Forget about this site" on. –  romkyns Aug 14 at 16:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.