Opened 17 years ago

Closed 17 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

Description

You can see this live at http://www.rssmeme.com/.

Nearly every view has @vary_on_cookie on it the whole site is cached using CacheMiddleware with memcache. So when you first hit http://www.rssmeme.com/ you don't have a cookie set and get the cached version. Then when you click the link to set your preview type: http://rssmeme.com/set/preview/none/?next=/ 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@…>, 17 years ago

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

No longer in use at http://www.rssmeme.com/ (switched to using low level caching to avoid this behavior) but it should still be considered.

comment:3 by Philippe Raoult, 17 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