[Catalyst] how to cache html file after processing by a template in a catalyst applicaiton

Perrin Harkins perrin at elem.com
Thu Feb 16 18:57:37 CET 2006


On Thu, 2006-02-16 at 12:22 -0500, Sai Tong wrote:
>   What would be the best way to cache the view ouput of catalyst before 
> the output is sent from the webserver to the browser?

If your pages are the same for all users, and you run a proxy server in
front of your application server, you can set the proxy to cache the
pages for you.  This has some advantages, including excellent speed and
proper handling of If-Modified-Since and byte-range requests.  It also
keeps the load completely off your app server, freeing it for dynamic
requests.

The downside is that clearing an individual page from the cache before
the time you set in your Expires header is not trivial.  This may have
been improved with the recent changes to proxy caching in the apache 2.2
branch.

- Perrin




More information about the Catalyst mailing list