Title: Cloudflare Pro issue
Last modified: July 1, 2024

---

# Cloudflare Pro issue

 *  Resolved [mcdeth](https://wordpress.org/support/users/mcdeth/)
 * (@mcdeth)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/cloudflare-pro-issue/)
 * hi, i have cloudflare pro and i’ve added api key to the plugin, images are served
   in webp but they’re not cached? with plugin off, images are cached (but obviously
   no webp). i don’t have issues with cache+lscache images optimization

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

 *  Plugin Author [Mateusz Gbiorczyk](https://wordpress.org/support/users/mateuszgbiorczyk/)
 * (@mateuszgbiorczyk)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/cloudflare-pro-issue/#post-17861838)
 * Hi [@mcdeth](https://wordpress.org/support/users/mcdeth/),
 * Thank you for your message. I am sorry you have encountered a problem with our
   plugin. Do not worry, I will try to help you.
 * I want to see what might have gone wrong. Could you send me a screenshot of the
   Help Center tab in the plugin’s settings? I will check it because in this tab
   I have information about the status of your website.
 * Best,
    Mateusz
 *  Thread Starter [mcdeth](https://wordpress.org/support/users/mcdeth/)
 * (@mcdeth)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/cloudflare-pro-issue/#post-17861842)
 * Here’s screenshoot,thanks
 * [https://ibb.co/kyZG4qn](https://ibb.co/kyZG4qn)
 *  Plugin Author [Mateusz Gbiorczyk](https://wordpress.org/support/users/mateuszgbiorczyk/)
 * (@mateuszgbiorczyk)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/cloudflare-pro-issue/#post-17862745)
 * Thank you [@mcdeth](https://wordpress.org/support/users/mcdeth/),
 * Please send me the contents of the .htaccess file from the /uploads directory.
   I’ll check it.
 *  Thread Starter [mcdeth](https://wordpress.org/support/users/mcdeth/)
 * (@mcdeth)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/cloudflare-pro-issue/#post-17862771)
 * The copy is here: [https://jumpshare.com/s/veXd9spBUUWvZlwLoYTv](https://jumpshare.com/s/veXd9spBUUWvZlwLoYTv)
 *  Plugin Author [Mateusz Gbiorczyk](https://wordpress.org/support/users/mateuszgbiorczyk/)
 * (@mateuszgbiorczyk)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/cloudflare-pro-issue/#post-17862858)
 * [@mcdeth](https://wordpress.org/support/users/mcdeth/), this is not the .htaccess
   file from the /uploads directory.
 *  Thread Starter [mcdeth](https://wordpress.org/support/users/mcdeth/)
 * (@mcdeth)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/cloudflare-pro-issue/#post-17862864)
 * sorry, it was main htaccess, my bad. here’s from wp-content/uploads [https://jumpshare.com/s/pGzN1EBu9ZUqUjRgVb7V](https://jumpshare.com/s/pGzN1EBu9ZUqUjRgVb7V)
 * and in uploads-webpc:
 *     ```wp-block-code
       # BEGIN Converter for Media# ! --- DO NOT EDIT PREVIOUS LINE --- !<IfModule mod_mime.c>  AddType image/avif .avif  AddType image/webp .webp</IfModule><IfModule mod_expires.c>  ExpiresActive On  ExpiresByType image/avif "access plus 1 year"  ExpiresByType image/webp "access plus 1 year"</IfModule># ! --- DO NOT EDIT NEXT LINE --- !# END Converter for Media
       ```
   
    -  This reply was modified 1 year, 11 months ago by [mcdeth](https://wordpress.org/support/users/mcdeth/).
 *  Plugin Author [Mateusz Gbiorczyk](https://wordpress.org/support/users/mateuszgbiorczyk/)
 * (@mateuszgbiorczyk)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/cloudflare-pro-issue/#post-17864119)
 * [@mcdeth](https://wordpress.org/support/users/mcdeth/) Please also send me the
   contents of the .htaccess file from the /wp-content directory.
 *  Thread Starter [mcdeth](https://wordpress.org/support/users/mcdeth/)
 * (@mcdeth)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/cloudflare-pro-issue/#post-17864366)
 * Here it is:
 *     ```wp-block-code
       # BEGIN Converter for Media# ! --- DO NOT EDIT PREVIOUS LINE --- !<IfModule mod_rewrite.c>  RewriteEngine On  RewriteOptions Inherit  RewriteCond %{QUERY_STRING} original$  RewriteCond %{REQUEST_FILENAME} -f  RewriteRule . - [L]  RewriteCond %{HTTP_ACCEPT} image/avif  RewriteCond %{REQUEST_FILENAME} -f  RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.jpg.avif -f  RewriteRule (.+)\.jpg$ /wp-content/uploads-webpc/$1.jpg.avif [NC,T=image/avif,L]  RewriteCond %{HTTP_ACCEPT} image/avif  RewriteCond %{REQUEST_FILENAME} -f  RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.png.avif -f  RewriteRule (.+)\.png$ /wp-content/uploads-webpc/$1.png.avif [NC,T=image/avif,L]  RewriteCond %{HTTP_ACCEPT} image/avif  RewriteCond %{REQUEST_FILENAME} -f  RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.webp.avif -f  RewriteRule (.+)\.webp$ /wp-content/uploads-webpc/$1.webp.avif [NC,T=image/avif,L]  RewriteCond %{HTTP_ACCEPT} image/avif  RewriteCond %{REQUEST_FILENAME} -f  RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.jpeg.avif -f  RewriteRule (.+)\.jpeg$ /wp-content/uploads-webpc/$1.jpeg.avif [NC,T=image/avif,L]  RewriteCond %{HTTP_ACCEPT} image/webp  RewriteCond %{REQUEST_FILENAME} -f  RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.jpg.webp -f  RewriteRule (.+)\.jpg$ /wp-content/uploads-webpc/$1.jpg.webp [NC,T=image/webp,L]  RewriteCond %{HTTP_ACCEPT} image/webp  RewriteCond %{REQUEST_FILENAME} -f  RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.png.webp -f  RewriteRule (.+)\.png$ /wp-content/uploads-webpc/$1.png.webp [NC,T=image/webp,L]  RewriteCond %{HTTP_ACCEPT} image/webp  RewriteCond %{REQUEST_FILENAME} -f  RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.jpeg.webp -f  RewriteRule (.+)\.jpeg$ /wp-content/uploads-webpc/$1.jpeg.webp [NC,T=image/webp,L]</IfModule><IfModule mod_headers.c>  <FilesMatch "(?i)\.(jpg|png|webp|jpeg)(\.(webp|avif))?$">    Header append Vary "Accept"  </FilesMatch></IfModule># ! --- DO NOT EDIT NEXT LINE --- !# END Converter for Media
       ```
   
 *  Plugin Author [Mateusz Gbiorczyk](https://wordpress.org/support/users/mateuszgbiorczyk/)
 * (@mateuszgbiorczyk)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/cloudflare-pro-issue/#post-17864771)
 * [@mcdeth](https://wordpress.org/support/users/mcdeth/) Everything works correctly.
   In my opinion, it is not my plugin that is blocking cache in Cloudflare.
 *  [pgray](https://wordpress.org/support/users/pgray/)
 * (@pgray)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/cloudflare-pro-issue/#post-17868876)
 * Matt, we have the same problem. It works great with the optimization but serving
   adds a private cache control header which prevents caching in Cloudflare Pro.
 * Had to disable the plugin.
 *  Plugin Author [Mateusz Gbiorczyk](https://wordpress.org/support/users/mateuszgbiorczyk/)
 * (@mateuszgbiorczyk)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/cloudflare-pro-issue/#post-17886997)
 * [@pgray](https://wordpress.org/support/users/pgray/), can you give me your website
   URL, please?
 *  Thread Starter [mcdeth](https://wordpress.org/support/users/mcdeth/)
 * (@mcdeth)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/cloudflare-pro-issue/page/2/#post-17938261)
 * Thanks for interest, I tested litespeed image optimization and it worked correctly
   with cloudflare. moved eventually to shortpixel, also works good.

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

The topic ‘Cloudflare Pro issue’ is closed to new replies.

 * ![](https://ps.w.org/webp-converter-for-media/assets/icon-256x256.png?rev=2636288)
 * [Converter for Media - Optimize images | Convert WebP & AVIF](https://wordpress.org/plugins/webp-converter-for-media/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/webp-converter-for-media/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/webp-converter-for-media/)
 * [Active Topics](https://wordpress.org/support/plugin/webp-converter-for-media/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/webp-converter-for-media/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/webp-converter-for-media/reviews/)

 * 17 replies
 * 3 participants
 * Last reply from: [mcdeth](https://wordpress.org/support/users/mcdeth/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/cloudflare-pro-issue/page/2/#post-17938261)
 * Status: resolved