-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
Context
We have a few large cookies in our cookie headers that we are pretty sure we're not going to be able to get rid of or make smaller, mostly from third parties. They may be diverting attention from other large cookies we can fix or remove.
Proposal
Split the cookie size calculations into ones that factor in these third party cookies and ones that don't.
Implementation details:
Add a new COOKIE_LOGGING_IGNORE_LIST setting that takes a list of prefixes
Add a new COOKIE_HEADER_WITH_EXCLUSIONS_SIZE_LOGGING_THRESHOLD setting (needs a better name)
Split the large cookie header logging code into two parts:
- If the total size is over COOKIE_HEADER_SIZE_LOGGING_THRESHOLD, log everything
- Otherwise, check the size of the header excluding cookies matching those in COOKIE_LOGGING_IGNORE_LIST
- If the new size is over COOKIE_HEADER_WITH_EXCLUSIONS_SIZE_LOGGING_THRESHOLD, log everything except the cookies that were ignored
- Add a new custom attribute for the new size
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels