Disable all caching in Firefox, Apache, PHP Plugin, etc.

I want to disable all caching on my Apache running Linux and all caching in Firefox and ... is there anywhere else that I can cache? I want my PHP and .css files to be fresh from disk all the time during development.

Disclaimer: I am asking about Apache as a dev tool , not as a deployment platform. If I ask about IIS and why is it caching .DLL, it looks at DEV. This is also a dev question.

0


a source to share


3 answers


Apache does not cache by default.

In firefox go to about: config and change browser.cache.disk.enabled and browser.cache.memory.enable to false .



If you are using a PHP framework that caches the pages you want to disable or be prepared to manually clean it up.

The only thing you might want to look for is to use a debug proxy that doesn't cache any content.

+2


a source


Disable Firefox caching in about: config:



  • install browser.cache.disk.enable

    infalse

  • install browser.cache.memory.enable

    infalse

  • install browser.cache.offline.enable

    infalse

+1


a source


Since you are using Firefox, can I briefly recommend Chris Pederick's rather excellent web developer toolbar ? It got tons of options to disable caching, JavaScript, session and cookie manipulation, etc.

Obviously I recommend you the caching options, but everything else is very handy stuff. This can be more convenient than manual switching options using about:config

.

+1


a source







All Articles