django-cookie-consent
django-cookie-consent copied to clipboard
Swap changing expires timestamp value with seconds non-changing value
The expiration time changes every time you do a browser refresh. This causes the cache to fill up quickly because every page the user visits, the source code is different each time due to the new expiration timestamp value. Changing this to a static non-changing value of settings.COOKIE_CONSENT_MAX_AGE will display the seconds a cookie will last and this value will not change unless the django developer changes the settings.COOKIE_CONSENT_MAX_AGE in their settings.
Related issue: #49
I am not sure how to do the javascript suggestion as shown in that issue. I will need someone else to make a PR if they want to implement a solution using that method.