#32774: cache_page decorator doesn't work for cross-browser
-------------------------------------+-------------------------------------
Reporter: HoangYell | Owner: nobody
Type: Bug | Status: closed
Component: Core (Cache system) | Version: 3.2
Severity: Normal | Resolution: needsinfo
Keywords: cache | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by HoangYell):
Replying to [comment:3 Mariusz Felisiak]:
> Thanks for this ticket, however I don't think you've explained the issue
in enough detail to confirm a bug in Django. As far as I'm aware cache
keys don't vary on the `ACCEPT` header unless you explicitly add it to the
`VARY`. In such case it works as expected. Can you provide more details
and a sample project?
Thank you, Seem like I don't understand enough about VARY :)
For those who are facing the same problem as me. here is an easy solution:
In **settings.py**
{{{
import django.utils.cache
django.utils.cache.cc_delim_re = re.compile(r"(?:\s*,\s*)|(?:Accept)")
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32774#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/070.381316691f0d3e8d6e3e9a313cf73536%40djangoproject.com.