Title: PRoblem with Litespeed cache
Last modified: February 1, 2023

---

# PRoblem with Litespeed cache

 *  Resolved [DogHustler](https://wordpress.org/support/users/doghustler/)
 * (@doghustler)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/problem-with-litespeed-cache-2/)
 * When using this plugin together with Litespeed Cache a strange problem occur…
 * When entering the page for the first time and the cookie pop-up triggers I inspect
   the page and check “Network”. I can see that Litespeed works as intended, as 
   I see the header “x-litespeed-cache: hit”. I also see that the Litespeed function
   to use .webp images instead of .jpg works. 
   However, as soon as I approve all
   cookies the header changes to “x-litespeed-cache: no-cache” and the .jpg images
   are no longer swapped with their .webp versions.
 * I have added the cookies_and_content_security_policy under Exclusions in the 
   Litespeed Cache settings as recommended on the plugin page on WordPress.org (
   the cookie plugin doesn’t work at all if I don’t).
 * Any idea what’s going on and if I am able to use this plugin together with Litespeed
   cache at all?
 * I have tried many solutions and even spent 2 hours with the Oderland support 
   yesterday trying to figure this out whit no luck.
 * Thanks in advance!
 * //Dan
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblem-with-litespeed-cache-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Johan Jonk Stenström](https://wordpress.org/support/users/jonkastonka/)
 * (@jonkastonka)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/problem-with-litespeed-cache-2/#post-16428978)
 * No, you’re actually right, even though this is the recommended way by Litespeed
   Cache … I’ve tested your site, and two others, and it’s the same thing.
 *  Thread Starter [DogHustler](https://wordpress.org/support/users/doghustler/)
 * (@doghustler)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/problem-with-litespeed-cache-2/#post-16443053)
 * Is there anything to do about this ar is this something that only the developers
   of Litespeed can sort out? 
   I really like your plugin, so I only want to change
   it to another cookie solution if i absolutely have to! =)
 * Thanks for your hard work, it is appreciated!
 * //Dan
 *  Plugin Author [Johan Jonk Stenström](https://wordpress.org/support/users/jonkastonka/)
 * (@jonkastonka)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/problem-with-litespeed-cache-2/#post-16445033)
 * The way I see it, it is up to the Litespeed developers. Their exclusion of caching
   the cookie excludes the caching itself, so they need to fix that.

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

The topic ‘PRoblem with Litespeed cache’ is closed to new replies.

 * ![](https://ps.w.org/cookies-and-content-security-policy/assets/icon-256x256.
   png?rev=2414719)
 * [Cookies and Content Security Policy](https://wordpress.org/plugins/cookies-and-content-security-policy/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cookies-and-content-security-policy/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cookies-and-content-security-policy/)
 * [Active Topics](https://wordpress.org/support/plugin/cookies-and-content-security-policy/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookies-and-content-security-policy/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookies-and-content-security-policy/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [Johan Jonk Stenström](https://wordpress.org/support/users/jonkastonka/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/problem-with-litespeed-cache-2/#post-16445033)
 * Status: resolved