Title: exclude body_class from cache
Last modified: May 16, 2017

---

# exclude body_class from cache

 *  [Jacob Dubail](https://wordpress.org/support/users/jacobdubail/)
 * (@jacobdubail)
 * [9 years ago](https://wordpress.org/support/topic/exclude-body_class-from-cache/)
 * Hi,
 * We have some IE specific styles that get applied via the body_class() function.
   How can we exclude the body_class() from the cache so that we always get accurate/
   fresh class names on each page load?
 * Thanks,
    Jacob

Viewing 1 replies (of 1 total)

 *  Thread Starter [Jacob Dubail](https://wordpress.org/support/users/jacobdubail/)
 * (@jacobdubail)
 * [9 years ago](https://wordpress.org/support/topic/exclude-body_class-from-cache/#post-9157013)
 * Could really use a response here. I’ve lost all of my context-specific styles.
   thanks!

Viewing 1 replies (of 1 total)

The topic ‘exclude body_class from cache’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [Jacob Dubail](https://wordpress.org/support/users/jacobdubail/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/exclude-body_class-from-cache/#post-9157013)
 * Status: not resolved