RE: How to cache PHP on Apache
| From: | Luanna Silva | Date: | Fri, 22 Nov 2002 18:17:10 +0000 |
| Subject: | RE: How to cache PHP on Apache | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-125635@lists.php.net to get a copy of this message | ||
My header looks just like this:
HTTP/1.0 200 OK
Date: Sat, 16 Nov 2002 16:45:29 GMT
Server: Apache/1.3.20 (Win32) PHP/4.0.6
Cache-Control: public, max-age=3600
Expires: Sat, 16 Nov 2002 17:45:29 GMT
X-Powered-By: PHP/4.0.6
Content-Type: text/html
And yes, we use sessions.
So, setting session_cache_limiter() to "public" should solve my problem?
The pragma header is what is missing?
Instead of changing the code, could i use Apache´s mod_header to do the job?
Thank you for the help!
Luanna
>Do you use sessions? If so, try using session_cache_limiter() function.
>Otherwise connect directly to
>apache with telnet and see the headers yourself.