FAQ

* Matt Pitts [2009-01-27 04:50]:
So, would something like the following prevent caches from
poisoning cookie headers...?

$c->req->header('Vary' => 'set-cookie');

Or would you set against the request header...?

$c->req->header('Vary' => 'cookie');
The latter. After all, the whole point of a proxy is that the
origin server isn?t sending a response, the proxy is. And at
the time when the proxy has to send a response, the only data
it can use to determine which variant to send is the client
request. So the origin server has to let intermediaries know
which *request* headers to use as hash keys for picking the
correct reponse, and that?s what the `Vary` response header
does.
Now, this I like! I was definitely suffering from close-
mindedness on the cart design and would have never even thought
of treating a Cart just like any other object your CRUDing and
give it REST-like URLs.
:-)

Regards,
--
Aristotle Pagaltzis // <http://plasmasturm.org/>

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcatalyst @
categoriescatalyst, perl
postedJan 27, '09 at 4:39a
activeJan 27, '09 at 4:39a
posts1
users1
websitecatalystframework.org
irc#catalyst

1 user in discussion

Aristotle Pagaltzis: 1 post

People

Translate

site design / logo © 2022 Grokbase