-
Notifications
You must be signed in to change notification settings - Fork 798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blocks: Cookie Consent: Hide the consent banner client-side when the user has dismissed it. #36815
base: trunk
Are you sure you want to change the base?
Conversation
…user has dismissed it.
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. 🔴 Action required: Please add missing changelog entries for the following projects: Use the Jetpack CLI tool to generate changelog entries by running the following command: Once your PR is ready for review, check one last time that all required checks appearing at the bottom of this PR are passing or skipped. Jetpack plugin: The Jetpack plugin has different release cadences depending on the platform:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Of note for anyone else reviewing this:
Related: #29831
I wonder if we could find a more generic way to fix this problem. I believe WP Super Cache has something similar with wp_cache_get_cookies_values
, but @donnchawp will know a lot more and may have a better idea on how to fix this for everyone.
Here's an example of a nginx caching that would not work with the existing setup: Specifically; That the In this case, the caching that's problematic was some generic |
This PR has been marked as stale. This happened because:
If this PR is still useful, please do a [trunk merge or rebase](https://github.com/Automattic/jetpack/blob/trunk/docs/git-workflow.md#keeping-your-branch-up-to-date) and otherwise make sure it's up to date and has clear testing instructions. You may also want to ping possible reviewers in case they've forgotten about it. Please close this PR if you think it's not valid anymore — if you do, please add a brief explanation. If the PR is not updated (or at least commented on) in another month, it will be automatically closed. |
So, the issue is that the cookie banner flashes if it's used on a cached page, and has already been clicked through? Batcache and WPSC come from a time when hardly any cookies were used, but now almost every page has a first party cookie once a cookie banner is clicked. For the Page Cache in Jetpack Boost we decided to just add the entire COOKIE array to the cache key and be done with it. For WPSC, you can use the
|
Fixes #36814
Proposed changes:
Other information:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions: