• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

5. Power Tools for Web Developers > 54. Turn Off Absolutely All Caching

Turn Off Absolutely All Caching

Be sure that the web page you’re viewing is freshly retrieved from across the network.

You can clean up Firefox so that no old data is hanging around [Hack #8] , but sometimes you might be looking for a more permanent solution. This brief hack explains how to achieve that.

Disable Browser Caching

To turn off the memory and disk browser caches completely, set these preferences:

browser.cache.memory.enable /* set to false, default = true */
browser.cache.disk.enable   /* set to false, default = true */

Turning these preferences off guarantees that Firefox will make an HTTP request for every URL it is asked to display.

Firefox does not use HTTP HEAD requests, at least not for the retrieval of web pages; it uses GET requests. Every URL can therefore be made to return a full copy of the resource (the web page) in question. Embedded images and other URLs are, of course, retrieved in separate GET requests. It is possible that web pages or Firefox extensions might issue their own HEAD requests, though.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint