Open
Description
Problem
I have a site that uses Google Analytics so I get a lot of these crap cookies. Wagtail Cache's cookie chopping works well until a page on the site that sets the csrf cookie is visited. Now settings.CSRF_COOKIE_NAME
cookie is in all requests which means that NO cookies are chopped and no pages are cached.
Solution
Strip all other cookies and build a cache key that only uses values for settings.CSRF_COOKIE_NAME
and settings.SESSION_COOKIE_NAME
(if these are present.)
Metadata
Metadata
35AD Assignees
Labels
No labels