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.

My companies production dynamic web servers ( Apache + PHP 5.1x) are using the Apache expires module and there is a clause inside http.conf as follows:

<FilesMatch ".+">
ExpiresActive On
ExpiresDefault "A0"

If I were to set inside a php script "Cache-Control" and "Expires", would it get eaten by this clause?

Normally I would test this on my own but having trouble convincing the Expires module to function on my workstation and the company Admin's are down at the data-center.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Making this answer/question community wiki. PHP does overrule Apache in regards to mod_expire.

share|improve this answer

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.