Re: Re: Web Caching...
| From: | Rasmus Lerdorf | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: Re: Web Caching... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-145342@lists.php.net to get a copy of this message | ||
mod_expires? mod_headers? No, you are on the wrong track. These modules
simply add various headers to static files. If you are worried about
cacheing PHP-generated scripts, you have full control over the response
headers from PHP. You simply need to send the right ones. It's not
called "Pragma-Cache" for example, it is just "Pragma" and that is the old
way of doing things. The 1.1 cache control header is called
"Cache-Control". But basically, just go and read about HTTP headers
somewhere and figure out which headers you need to send to achieve
whatever it is you are trying to do. PHP does not interfere in any way
with the sending of whatever headers you want to send.
-Rasmus
On Fri, 25 Apr 2003, Scott Fletcher wrote:
> Still searching the archieves for a few hours and fix the broken codes...
> Still have not found the solution to the problem about the caching
> control... As when I took a break from it and read the PHP manual about the
> php header function which then lead to another function
> 'session-cache-limiter' and found the hyperlink there that link to a website
> that is very well explain about how to use it. Like a manual of some sort.
> The hyperlink here is http://www.mnot.net/cache_docs/. From
> there, I found
> the cause of the problem. It said that the browser is one thing and the
> server is another thing. Since I'm using Apache, in the manual said I have
> to have it turn on on Apache for the PHP to be able to use it. It said I
> need mod_expires and mod_headers. Since I don't have that running, so the
> cache control in effect doesn't work.... That's explained why I have been
> having trouble for a few years...
>
>
> "Scott Fletcher" <scott@abcoa.com> wrote in message
> news:20030425155351.28588.qmail@pb1.pair.com...
> > I have noticed that the web caching doesn't work too well. If I want to
> use
> > the PHP header with the 'Pragma-Cache: no cache' (Spelling??), there come
> a
> > few problems.
> >
> > 1) Some web browsers doesn't follow this rules...
> > 2) I get the php error message because the web pages is being send out
> after
> > the PHP header..
> >
> > And so on... Any sugguestion or solution to the problem? I would really
> > appreciate it...
> >
> > Thanks,
> > FletchSOD...
> >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>