On Aug 15, 2008, at 7:07 PM, Alex Man wrote:
> Hi all,
>
> In CacheFu's Cache Configuration Tool, if you go to Rules and select
> a rule, say, Content, you can tell CacheFu how you want to deal with
> authenticated users, such as "Cache with ETag". My question is:
>
> How does Squid know that a request is coming from an authenticated
> user so that it does not cache it but instead passing it to Zope (so
> that Zope can use ETag to decide how to serve the content, for
> example)?
You've got it backwards. Since we use cookie authentication, Squid
doesn't care about the request; it only cares about the response
(unless the response Vary header says otherwise). So the short answer
is that Squid will respect the cache related headers in the response.
If you look at the cache-with-etag headerset, you will see that, among
other things, it sets the cache-control maxage header to zero seconds
--- this keeps the response out of the Squid cache.
> I'm using Shibboleth for authentication (instead of the regular
> Plone authentication) and Squid is serving my cached content even if
> I'm logged in (I can see X-Cache = HIT using Live HTTP Headers). If
> CacheFu only works with the default Plone authentication mechanism
> out of the box, is there a way for me to make it work with
> Shibboleth too?
Are you perhaps also trying to cache the unauthenticated version of
the same content? If the url for both versions is the same, Squid has
no idea that they are supposed to be different unless you tell it
otherwise and may serve the cached unauthenticated version to you
instead.
> I'm using Plone 2.5.5, Zope 2.9.8, CacheFu 1.2 and Squid 3.0. Thanks
> a lot!
Note that CacheFu has not yet been tested against Squid 3.0.
Ric
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________
Plone-Users mailing list
Plone-Users@...
https://lists.sourceforge.net/lists/listinfo/plone-users