Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a website that is sending out "cache-control" and "pragma" HTTP headers for PHP requests.
I'm not doing that in the code, so I'm assuming it's some kind of Apache configuration, as suggested by this question (you don't really need to go there for this question's context)

I don't have anything in my .htaccess files, so it's gotta be in Apache's configuration itself, but I can't access that, this is a shared hosting, I only have FTP access to my website's directory.

Is there any way that I can add directives to my .htaccess files that will remove the headers added by the global configuration, or otherwise override the directive so that they're not added in the first place?

Thank you very much
Daniel

share|improve this question

1 Answer 1

up vote 7 down vote accepted

Just replied to my own question...

Header unset Pragma
Header unset Last-Modified
Header unset Cache-Control
share|improve this answer
2  
Could you mark it as the Answer please & thank you. –  Chris S Oct 1 '10 at 17:26
    
Yes, thank you for the reminder. I hadn't done this because of the stupid "you need to wait to mark this as the right answer" delay. –  Daniel Magliola Oct 2 '10 at 15:21

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.