Great! With the tools you pointed to me, I discovered that the header() function aren't affecting the real HTTP output!!
My Apache outputs the following HTTP headers:
HTTP/1.1 200 OK
Date: Mon, 25 Dec 2000 14:15:05 GMT
Server: Apache-AdvancedExtranetServer/1.3.14 (Linux-Mandrake/2mdk) PHP/4.0.4
X-Powered-By: PHP/4.0.4
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Last-Modified: Mon, 25 Dec 2000 14:15:06 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: PHPSESSID=4b36ed14470df5d2491c4dad1f9f99e8; path=/
Connection: close
Content-Type: text/html
Note the Cache-Control and Pragma headers. I tried to control them through:
A) writing in the php file (before any html output)
header ("Cache-Control: only-if-cached, max-age=20");
😎 placing .htaccess file in the same directory where the php file is placed:
Header unset Cache-Control
Header unset Pragma
(A) neither (😎 isn't working...
I checked the httpd.conf file for the overriding .htaccess permission, but it seems all to be ok.
What may be??