wp-rocket icon indicating copy to clipboard operation
wp-rocket copied to clipboard

Age Verification Screen for WooCommerce cookie gets stripped in Never Cache Cookies

Open worldwildweb opened this issue 11 months ago • 1 comments

Before submitting an issue please check that you’ve completed the following steps:

  • Made sure you’re on the latest version: 3.15.9 ✓
  • Used the search feature to ensure that the bug hasn’t been reported before✓

Describe the bug Age Verification Screen for WooCommerce plugin sets a cookie hyaM0gU)i7. When hyaM0gU)i7 is added in the Never Cache Cookies, the ) gets stripped.

To Reproduce Steps to reproduce the behavior:

  1. Go to Advanced Rules
  2. Add hyaM0gU)i7 in Never Cache Cookies
  3. Save
  4. Notice hyaM0gU)i7 is now hyaM0gUi7

Expected behavior hyaM0gU)i7 should be preserved entirely

Screenshots If applicable, add screenshots to help explain your problem.

Additional context hs: https://secure.helpscout.net/conversation/2530557821/478653?viewId=5547167 slack: https://wp-media.slack.com/archives/C08N8J6VC/p1709792088466699?thread_ts=1709719643.903429&cid=C08N8J6VC

Acceptance Criteria (for WP Media team use only) Clear instructions for developers, to be added before the grooming

worldwildweb avatar Mar 07 '24 07:03 worldwildweb

Tested adding it using a filter. It broke the rewrite rule line because of ) and it doesn't look like there is a way to skip characters while still have the rewrite rule apply.

DahmaniAdame avatar Mar 07 '24 08:03 DahmaniAdame

This is not something that can be implemented in the nearest future.

piotrbak avatar Jun 28 '24 15:06 piotrbak

Hello, I am using this plugin with WP Rocket. first time cookie name add in advanced rules. cookie never cached but "age verification screen.." plugin hit on "Purge users' cookies" button. new cookie name gererated. how to resolved the issues? any one help me please?

webdeveloper10001 avatar Aug 10 '24 05:08 webdeveloper10001