1

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?

3

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.

  • 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? – Wern Ancheta May 28 '12 at 11:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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