[Catalyst] Re: Capture page on server?

Ryan D Johnson ryandjohnson at gmail.com
Mon Jun 23 22:04:10 BST 2008

Aristotle Pagaltzis <pagaltzis at gmx.de> writes:

> * Ryan D Johnson <ryandjohnson at gmail.com> [2008-06-23 20:40]:
>> I've been mulling over whether there's any reasonable way to
>> fix things to deal with this, but it amounts to any kind of
>> content negotiation needing to run very early (as part of
>> dispatch?) and somehow publishing that information to the rest
>> of the pipeline.
> HTTP. 

I'm not 100% sure if I followed your point. I think it was well-behaved
servers should be setting the Vary response header when content is
negotiated based on a request header, and well-behaved caches should pay
attention to it.

Here's where I show ignorance of the Catalyst plugin model. For example,
C::P::PageCache and C::P::Compress::Gzip both hook into finalize --
PageCache to cache the data, Gzip to compress the data. Is the calling
order for those two guaranteed somehow by NEXT? If I include PageCache
*last* (or *first*?) in the plugin load order, will that guarantee that
all the other plugins have done their work?

If so, it might make sense for PageCache to pay attention to the Vary
header. I imagine that the cache save and lookup code will get
significantly more complex, though. 


More information about the Catalyst mailing list