Home » Questions » Computers [ Ask a new question ]

How to turn off the Firefox cache?

How to turn off the Firefox cache?

I'm using Firefox 3.5.2. For some reason, it has cached a page and won't update. For example, I added an alert('test'); statement to some JavaScript code which is loaded on the page, but Firefox doesn't see it. When I do a view source, I still see the old code.

Asked by: Guest | Views: 286
Total answers/comments: 5
Guest [Entry]

"You can force all requests relating to a refresh to actually be requested from the server (bypassing any already cached content, and updating the cache with the new version) by using Ctrl+F5 instead of just F5.

This does not work for requests made by the page within client-side code though. When that is a problem you need to use the POST method (POST requests should never be cached) instead of GET or add an ever-changing value to the query string (such as the current time in ms)."
Guest [Entry]

If you use FireBug, on the Network tab's drop down menu there is an option do disable the browser's cache.
Guest [Entry]

I would say that the best way I have found is to click on TOOLS in firefox and start private browsing which does not cache any pages and will restore any pages you had open prior to going in to PRIVATE BROWSING. Nice feature.
Guest [Entry]

"On android devices, use the following settings in about:config to disable the browser cache:

browser.cache.disk.enable = False
browser.cache.memory.enable = False"
Guest [Entry]

"On Firefox 4, use about:config. In the filter, type cache. Toggle all toggles to false. Be careful, don't change any sizes, just the toggles.

Then use Ctrl + F5 for the refreshes. This also works well for page speed testing."