Title: Exclude cookie
Last modified: February 20, 2020

---

# Exclude cookie

 *  Resolved [davemktg86](https://wordpress.org/support/users/davemktg86/)
 * (@davemktg86)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/exclude-cookie/)
 * Good morning,
 * I should exclude the stm_gdpr_cookie cookie from the cache to make the cookie
   banner work properly. I entered this regexp in the appropriate field:
 * / ^ (stm_gdpr_cookie) /
 * but I’m not sure it work s properly. Is this regular expression correct?
 * Thanks in advance
    Best regards

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Anonymous User 16850768
 * (@anonymized-16850768)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/exclude-cookie/#post-12474612)
 * Using the Cache Exclusions setting will bypass the entire page from the Cache
   Enabler cache. It’s not possible to only bypass the banner from the cache. This
   means if a page has the `stm_gdpr_cookie` cookie the entire page will not be 
   cached. This won’t be effective caching if all of your pages contain this banner.
 * The regular expression you’ve used will bypass any page that has the `stm_gdpr_cookie`
   cookie, however, I’d recommend updating it to the following to also include the
   default cookies that the Cache Enabler plugin sets:
 * `/^(wp-postpass|wordpress_logged_in|comment_author)_|stm_gdpr_cookie/`
 *  Thread Starter [davemktg86](https://wordpress.org/support/users/davemktg86/)
 * (@davemktg86)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/exclude-cookie/#post-12477730)
 * hi,
    thank you very much for your reply and and your suggest. So, if I exclude
   this cookie Ill exclude all my site pages, if I understand right. I have a cokkies
   plugin, can be better exclude this plugin(that manage cookie banner) instead 
   the single cookie?
 * regards

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Exclude cookie’ is closed to new replies.

 * ![](https://ps.w.org/cache-enabler/assets/icon.svg?rev=2442383)
 * [Cache Enabler](https://wordpress.org/plugins/cache-enabler/)
 * [Support Threads](https://wordpress.org/support/plugin/cache-enabler/)
 * [Active Topics](https://wordpress.org/support/plugin/cache-enabler/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cache-enabler/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cache-enabler/reviews/)

## Tags

 * [exclusion](https://wordpress.org/support/topic-tag/exclusion/)

 * 2 replies
 * 2 participants
 * Last reply from: [davemktg86](https://wordpress.org/support/users/davemktg86/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/exclude-cookie/#post-12477730)
 * Status: resolved