RE: Apache dynamic page caching?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Howard,
1. Be sure to load following module

    LoadModule headers_module modules/mod_headers.so

2. Add following Header directive at the last of httpd.conf file.

    Header add Cache-Control max-age=3600              (in seconds)

Here we can decide that what is the maximum age of cached response.
If max-age passed then apache again sends request to backend(tomcat) for re-caching, if the body of response is not found modified then 304 status is found means existing cache would be used.If body changed then then it is re-cached. You can use any amount of time to decide re-caching.

Thanks
Narendra

-----Original Message-----
From: howard chen [mailto:howachen@xxxxxxxxx]
Sent: Wednesday, April 16, 2008 4:09 PM
To: users@xxxxxxxxxxxxxxxx
Subject: Re:  Apache dynamic page caching?

Hi,


On Wed, Apr 16, 2008 at 3:53 PM, Nick Kew <nick@xxxxxxxxxxxx> wrote:
>
>  mod_cache.
>
>

The problem with mod_cache is when user update a page, how do I tell
the cache should be removed from mod_cache?

Currently I stored the cache in local file system and it can be easily
unlink() to force an update. In the context of dynamic page, I don't
have field such as last modifed or etag.


Howard

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux