Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What are the effects of turning off the cache in a browser (for instance, using this method in Firefox):

network.http.use-cache - false

I'm building an application using PHP and it uses cookies and sessions. Will disabling the cache have any effect on those? Basically what does turning off the cache do in a browser? Will it have some nasty effects? Will it change the behavior of web sites?

share|improve this question
up vote 3 down vote accepted

From MozillaZine:

When a page is loaded, it can be cached so it doesn't need to be downloaded to be redisplayed. This preference controls whether to cache files retrieved by HTTP or HTTPS either in memory or on disk.

In other words, when this setting is disabled, web pages will always be loaded from the server every time you visit them, as opposed to keeping them cached locally to speed up page loading times on subsequent visits.

This shouldn't affect cookies or sessions.

share|improve this answer
True, but I'd like to add that caching is more interesting for images and scripts rather than entire pages. For example, all Super User sites use the same sprites image and the same JavaScript and CSS files. All of those only have to get downloaded once. Disabling the cache makes browsing slower. – Dennis May 28 '12 at 11:17
This is just a web application with 20 users and we have our own server so it might not have that much effect if I disable the cache right? – Ieyasu Sawada May 28 '12 at 11:39

Your Answer


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.