Title: GDPR + WP-Rocket cache
Last modified: May 25, 2018

---

# GDPR + WP-Rocket cache

 *  [Giellemme](https://wordpress.org/support/users/giellemme/)
 * (@giellemme)
 * [8 years ago](https://wordpress.org/support/topic/gdpr-wp-rocket-cache/)
 * The plugin is working great but in the cached working is not showing up the banner
   or giving strange codes after cookie consent. I tried to exclude banner scripts
   and css from the cache, but it is not working. Any instruction I am missing?

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

 *  [John Hogan](https://wordpress.org/support/users/poegle1987/)
 * (@poegle1987)
 * [8 years ago](https://wordpress.org/support/topic/gdpr-wp-rocket-cache/#post-10322750)
 * I use W3 Total Cache and had problems similar to you; not displaying and weird
   displays. I got it working properly by changing the JS from async to deferred.
 * Hope that helps,
 * John
 *  Thread Starter [Giellemme](https://wordpress.org/support/users/giellemme/)
 * (@giellemme)
 * [8 years ago](https://wordpress.org/support/topic/gdpr-wp-rocket-cache/#post-10323432)
 * You mean in the cache plugin preferences? If so, I have already set those to 
   deferred. :o(
 *  [mic85b](https://wordpress.org/support/users/mic85b/)
 * (@mic85b)
 * [8 years ago](https://wordpress.org/support/topic/gdpr-wp-rocket-cache/#post-10329426)
 * John: How You prevent being cached addon of code which disabling some cookie?
   Are you sure it works ok? In my opinion it can’t.

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

The topic ‘GDPR + WP-Rocket cache’ is closed to new replies.

 * ![](https://ps.w.org/gdpr/assets/icon.svg?rev=1837142)
 * [GDPR](https://wordpress.org/plugins/gdpr/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gdpr/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gdpr/)
 * [Active Topics](https://wordpress.org/support/plugin/gdpr/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gdpr/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gdpr/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [mic85b](https://wordpress.org/support/users/mic85b/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/gdpr-wp-rocket-cache/#post-10329426)
 * Status: not resolved