Opened 16 years ago

Closed 16 years ago

#6560 closed (invalid)

@vary_on_cookie does not seem to be working for Safari

Reported by: benjamin.golub@… Owned by: nobody
Component: Core (Cache system) Version: dev
Severity: Keywords: vary_on_cookie, memcache, CacheMiddleware
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


You can see this live at

Nearly every view has @vary_on_cookie on it the whole site is cached using CacheMiddleware with memcache. So when you first hit you don't have a cookie set and get the cached version. Then when you click the link to set your preview type: I set a session variable with your preview type.

In Firefox and IE you are now being served uncached data because of the @vary_on_cookie decorator. Safari continues to serve up cached data though so it feels like clicking on the links does nothing; this sucks for my users.

Change History (3)

comment:1 by Benjamin Golub <benjamin.golub@…>, 16 years ago

comment:2 by Benjamin Golub <benjamin.golub@…>, 16 years ago

No longer in use at (switched to using low level caching to avoid this behavior) but it should still be considered.

comment:3 by Philippe Raoult, 16 years ago

Resolution: invalid
Status: newclosed

Are you sure safari actually sent cookies ? If it works in IE AND Firefox it's likely a safari issue then. Closing until you can show us more.

Note: See TracTickets for help on using tickets.
Back to Top