Title: Plugin finding OLD Avif files &amp; bugging
Last modified: September 17, 2023

---

# Plugin finding OLD Avif files & bugging

 *  Resolved [19ash82](https://wordpress.org/support/users/19ash82/)
 * (@19ash82)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/plugin-finding-old-avif-files-bugging/)
 * Hi,
 * Recently, my server provider was able to provide me a Litespeed server.
 * Before, I was on cloudflare free plan plus using a plugin Convertor for Media
   which created avif & webp files for images and used vary header to send the correct
   file to the corect browser.
 * When switching to Litespeed (I continue to use Cloudflare & update the dns with
   the new IP), I saw it was not compatible to do vary header, so I deleted the 
   plugin, deactivated the Litespeed & checked in incognito mode & saw the filed
   loaded were no longer AVIF but JPEG
 * However, as soon as I press on use Litespeed server again, the AVIF files reappear&
   I have no idea how (I unistalled ythen plugin).
 * Is there something specific to be done at unistallation so that it goes to a 
   pure jpg without header issue ?
 * Thanks,
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-finding-old-avif-files-bugging%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/plugin-finding-old-avif-files-bugging/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-finding-old-avif-files-bugging/page/2/?output_format=md)

 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/plugin-finding-old-avif-files-bugging/#post-17056581)
 * LiteSpeed Cache plugin will not touch anything about the vary header , and as
   far as I know , only CloudFlare Enterprise plan supports vary header ?
 * you have some additional cache layer , you may need to purge that as well
 * for LSCWP part ,you may need to purge all before you disable it
 *  Thread Starter [19ash82](https://wordpress.org/support/users/19ash82/)
 * (@19ash82)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/plugin-finding-old-avif-files-bugging/#post-17056584)
 * Hi, this is why i deleted the plugin : to remove this issue & get an ordinary
   jpg /png & purged all.
 * When I delete, I still get AVIF, as if it is cached. I need to change IP to an
   ordinary (non litespeed Serve) & then I see it’s back to normal JPEG.
 * But as soon as I reactivate Litespeed, that AVIF file extension reappears & I
   don’t know why.
 * And, It’s not good because without the vary header it serves AVIF to incompatible
   browsers…
    -  This reply was modified 2 years, 8 months ago by [19ash82](https://wordpress.org/support/users/19ash82/).
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/plugin-finding-old-avif-files-bugging/#post-17056589)
 * you can disable plugin , then create a php file , name it like `purge.php` , 
   with code
 *     ```wp-block-code
       <?php 
       header('x-litespeed-purge:*');
       ```
   
 * access it by `https://yourdomain.com/purge.php`
 * this should fully clean up all the cache by LSCWP
 * after that , it should be same as you install it before
 * if not , you must have other caching system in place
 *  Thread Starter [19ash82](https://wordpress.org/support/users/19ash82/)
 * (@19ash82)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/plugin-finding-old-avif-files-bugging/#post-17056591)
 * I’m not very familiar with php files. I have code snippet installed to add to
   php…
 * Can you please provide me something in this format ?
    -  This reply was modified 2 years, 8 months ago by [19ash82](https://wordpress.org/support/users/19ash82/).
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/plugin-finding-old-avif-files-bugging/#post-17056601)
 * it has to be done this way
 * perhaps you could contact your hosting provider and ask for assistance
 *  Thread Starter [19ash82](https://wordpress.org/support/users/19ash82/)
 * (@19ash82)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/plugin-finding-old-avif-files-bugging/#post-17056607)
 * I did it finally.. I wrote it.. When I then go to my domain/purge.php, I get 
   a white screen. Is this good ?
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/plugin-finding-old-avif-files-bugging/#post-17056608)
 * yes , that means the LSCache is fully purged
 *  Thread Starter [19ash82](https://wordpress.org/support/users/19ash82/)
 * (@19ash82)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/plugin-finding-old-avif-files-bugging/#post-17056617)
 * After the purge, I switched back to an ordinary server. . The images were back
   to ordinary jpeg…
 * I turned back on at server level (switched to litespeed), reinstalled litespeed
   at WordPress.. And got those avif again.. Like there is a cache somewhere which
   activates only with lscache..
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/plugin-finding-old-avif-files-bugging/#post-17056618)
 * your provider is using LiteSpeed ADC, it’s not ordinary LiteSpeed webserver
 * if your AVIF/JPG serve by same URI , I think it will break with ADC
 *  Thread Starter [19ash82](https://wordpress.org/support/users/19ash82/)
 * (@19ash82)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/plugin-finding-old-avif-files-bugging/#post-17056619)
 * Can Quic Cloud or server do that?
 *  Thread Starter [19ash82](https://wordpress.org/support/users/19ash82/)
 * (@19ash82)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/plugin-finding-old-avif-files-bugging/#post-17056621)
 * What should I do then?
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/plugin-finding-old-avif-files-bugging/#post-17056622)
 * No , the way your serve AVIF/JPG needs CDN that supports Vary or something., 
   QC CDN does’t support that.
 *  Thread Starter [19ash82](https://wordpress.org/support/users/19ash82/)
 * (@19ash82)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/plugin-finding-old-avif-files-bugging/#post-17056624)
 * I ddon’t want to have avif or header vary.. I want them to disappear (which is
   why I deleted that media plug-in).. But somewhere, its effects keep reappearing.
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/plugin-finding-old-avif-files-bugging/#post-17056630)
 * alright , please create a ticket by mail to `support at ltiespeedtech.com` with
   reference link to this topic , we will investigate further.
 *  Thread Starter [19ash82](https://wordpress.org/support/users/19ash82/)
 * (@19ash82)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/plugin-finding-old-avif-files-bugging/#post-17056909)
 * I think I found it (partially)
 * The old caching plugin left an advanced-cache.php file in my WP-content
 * I deleted it & reinstalled Litespeed.
 * I no longer have the AVIS issue.
 * Can you just check though ?.. LS cache seems to be a MISS now everytime (but 
   that could be normal with Cloudflare free plan)

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/plugin-finding-old-avif-files-bugging/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-finding-old-avif-files-bugging/page/2/?output_format=md)

The topic ‘Plugin finding OLD Avif files & bugging’ is closed to new replies.

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

 * 16 replies
 * 2 participants
 * Last reply from: [19ash82](https://wordpress.org/support/users/19ash82/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/plugin-finding-old-avif-files-bugging/page/2/#post-17057154)
 * Status: resolved