httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <n...@webthing.com>
Subject Re: [users@httpd] Apache dynamic page caching?
Date Wed, 16 Apr 2008 07:53:43 GMT

On 16 Apr 2008, at 03:59, howard chen wrote:
> Hi,
>
> Are there any existing method for Apache which can do the followings?

mod_cache.

> E.g.
>
> When a user first go to a page, www.example.com/article.php?id=123, my
> PHP problem will
> generated a static copy of HTML under a temp folder (e.g.
> /tmp/article/md5(123).html), so following requests to the
> page will not require SQL query, and my PHP will fetch the page from
> cache directly.

If you're using PHP, then it's up to you to make it cacheable.  Set a  
Last-Modified
and perhaps an ETag header, and respond as aggressively as you like to
cacheing request headers.

-- 
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message