When I set a custom header in Apache + mod_php5, this works fine:
header('Foo: Bar');
But when I try to do this, also sending a 304 Not Modified response, the header seems to be removed by apache (along with X-Powered-By and other standard headers).
header('HTTP/1.1 304 No Content');
header('Foo: Bar');
Does anyone know how to solve this problem?
Evert source
share