[phpa] Re: Cached 'static' PHP vs HTML

Citeren Mark Rogers <mark@xxxxxxxxxxxxxx>:

| 
| > The HTML page will probably be fastest.
| > Accelerated PHP in the middle. Bog-standard
| > PHP the slowest. [...]
| > That's probably all you need to know.
| 
| Thanks, that's what I thought. I wondered whether the SHM might push it
| past
| HTML but didn;t really expect it to.
| 
| Thinking about it, one of the main things I'm not doing is setting the
| headers to tell browsers to cache the page; that might do more good than
| worrying about PHP caching in the long run.

You might indeed consider sending special header with php. If you use static 
html pages, Apache will automaticly generate 'last-modified' headers. That will 
cause browsers and proxies not to load the page at all, but use their cached 
version.

Greetz,

Rense

------------------------------------------------------------------------
  www.php-accelerator.co.uk           Home of the free PHP Accelerator

To post, send email to phpa@xxxxxxxxxxxxx
To unsubscribe, email phpa-request@xxxxxxxxxxxxx with subject unsubscribe


Other related posts: