[Catalyst] PageCache support for caching redirect responses

Tomas Doran bobtfish at bobtfish.net
Mon Nov 1 17:39:46 GMT 2010


On 31 Oct 2010, at 08:38, Paul Flow wrote:

> Hi everyone,
>
> My Catalyst app supports requests using a variety of easily typed
> shorthand URIs that redirect to a canonical URI.  Determining the
> canonical from some shorthands can be expensive, but rarely if ever
> change, so I'm looking to cache the response (with its Status: 301,
> Location: ..., no body) so that subsequent requests for that shorthand
> get the same response pulled from cache instead of re-evaluating and
> re-generating the canonical and the redirect to it.
>
> I've tried to set this up with Catalyst::Plugin::PageCache.


Do you not want an actual caching reverse proxy in front of your app,  
such that this traffic never needs to take up an app worker when cached?

Cheers
t0m
  



More information about the Catalyst mailing list