Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am not a webmaster, and that was exactly the reason why I installed XAMPP 1.7.2 on Windows XP SP2 instead of manually configuring Apache, MySQL and PHP to cooperate each other.

Now I am having to problem to disable caching pages from localhost.

Some suggested just force the browser not to cache, using Firefox web developer bar or something similar; but I feel it would be better if I could configure the Apache server in XAMPP to never allow pages from localhost to be cached.

I guess this is done somewhere in httpd.conf?

LoadModule cache_module modules/mod_cache.so

Would this module be helpful in this case? Doc here : mod_cache

I am not very sure this would resolve the problem. Could anyone confirm this approach feasible? I'd like to work it out myself, given the fact that I am on the right track...

Many thanks in advance

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

Use mod_cache at http://httpd.apache.org/docs/2.0/mod/mod_cache.html

CacheDisable /local_files

Description: Disable caching of specified URLs Syntax: CacheDisable url-string Context: server config, virtual host

share|improve this answer
add comment

Do you need to uncomment the module? In my http.conf file the module is commented out with a #:

#LoadModule cache_module modules/mod_cache.so
share|improve this answer
add comment

Your Answer

 
discard

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.