• Resolved gcnj123

    (@superfc7)


    I want the images on the website to return to the state before image optimization was enabled. I have clicked ‘Use Original Files’ in the image optimization panel, and turned off all options in Setting. And there are no relevant rules in .htaccess either. But the images on my website are still .webp which should be .jpg.

    Report: FIHTYLCS

    .htaccess

    # BEGIN LSCACHE
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
    <IfModule LiteSpeed>
    RewriteEngine on
    CacheLookup on
    RewriteRule .* - [E=Cache-Control:no-autoflush]
    RewriteRule \.litespeed_conf\.dat - [F,L]
    
    ### marker CACHE RESOURCE start ###
    RewriteRule wp-content/.*/[^/]*(responsive|css|js|dynamic|loader|fonts)\.php - [E=cache-control:max-age=3600]
    ### marker CACHE RESOURCE end ###
    
    ### marker FAVICON start ###
    RewriteRule favicon\.ico$ - [E=cache-control:max-age=86400]
    ### marker FAVICON end ###
    
    ### marker DROPQS start ###
    CacheKeyModify -qs:fbclid
    CacheKeyModify -qs:gclid
    CacheKeyModify -qs:utm*
    CacheKeyModify -qs:_ga
    ### marker DROPQS end ###
    
    </IfModule>
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
    # END LSCACHE
    # BEGIN NON_LSCACHE
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
    ### marker BROWSER CACHE start ###
    <IfModule mod_expires.c>
    ExpiresActive on
    ExpiresByType application/pdf A31557600
    ExpiresByType image/x-icon A31557600
    ExpiresByType image/vnd.microsoft.icon A31557600
    ExpiresByType image/svg+xml A31557600
    
    ExpiresByType image/jpg A31557600
    ExpiresByType image/jpeg A31557600
    ExpiresByType image/png A31557600
    ExpiresByType image/gif A31557600
    ExpiresByType image/webp A31557600
    
    ExpiresByType video/ogg A31557600
    ExpiresByType audio/ogg A31557600
    ExpiresByType video/mp4 A31557600
    ExpiresByType video/webm A31557600
    
    ExpiresByType text/css A31557600
    ExpiresByType text/javascript A31557600
    ExpiresByType application/javascript A31557600
    ExpiresByType application/x-javascript A31557600
    
    ExpiresByType application/x-font-ttf A31557600
    ExpiresByType application/x-font-woff A31557600
    ExpiresByType application/font-woff A31557600
    ExpiresByType application/font-woff2 A31557600
    ExpiresByType application/vnd.ms-fontobject A31557600
    ExpiresByType font/ttf A31557600
    ExpiresByType font/otf A31557600
    ExpiresByType font/woff A31557600
    ExpiresByType font/woff2 A31557600
    
    </IfModule>
    ### marker BROWSER CACHE end ###
    
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
    # END NON_LSCACHE
    # BEGIN WordPress
    # The directives (lines) between "BEGIN WordPress" and "END WordPress" are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    # BEGIN LiteSpeed
    # The directives (lines) between "BEGIN LiteSpeed" and "END LiteSpeed" are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <IfModule Litespeed>
    SetEnv noabort 1
    </IfModule>
    # END LiteSpeed
Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter gcnj123

    (@superfc7)

    I used to add this code at the top of .htaccess, now I have deleted it, but the image is still webp.

    <IfModule LiteSpeed>
    RewriteCond %{HTTP_ACCEPT} “image/webp” 
    RewriteCond %{REQUEST_FILENAME}.webp -f 
    RewriteRule ^(.*).(jpg|jpeg|png|gif) $1.$2.webp [T=image/webp,L]
    </IfModule>
    serpentdriver

    (@serpentdriver)

    Purge browser cache and the LiteSpeed server cache.

    Thread Starter gcnj123

    (@superfc7)

    Yes I have purge all cache including my browser cache. But not work.
    This is my page, all images are webp

    https://www.genshinstuff.com/shop/

    serpentdriver

    (@serpentdriver)

    The webp images that are loaded on your site do not come from the cache plugin, but from WordPress, which you obviously entered yourself. You can tell by the fact that these webp images have a different file extension.

    Original: *.web
    Cache Plugin: *.jpg.webp

    serpentdriver

    (@serpentdriver)

    And this code is still in use:

    <IfModule LiteSpeed>
    RewriteCond %{HTTP_ACCEPT} “image/webp” 
    RewriteCond %{REQUEST_FILENAME}.webp -f 
    RewriteRule ^(.*).(jpg|jpeg|png|gif) $1.$2.webp [T=image/webp,L]
    </IfModule>
    Thread Starter gcnj123

    (@superfc7)

    This is strange. I checked my file directory, taking the first image as an example, the image I downloaded from the website is

    plant1-free-img-600×600.webp

    But in fact, my file directory only has

    plant1-free-img-600×600.jpg.webp

    and there is no plant1-free-img-600×600.webp

    I believe this is because I added the code in my previous reply with the help of another support man. But in fact I have deleted the code, it just seems that the code is still working. 

    Thread Starter gcnj123

    (@superfc7)

    I checked .htaccess again, and ensure this code is deleted. So strange.

    serpentdriver

    (@serpentdriver)

    You must not only pay attention to the file extension. With this code

    <IfModule LiteSpeed>
    RewriteCond %{HTTP_ACCEPT} “image/webp” 
    RewriteCond %{REQUEST_FILENAME}.webp -f 
    RewriteRule ^(.*).(jpg|jpeg|png|gif) $1.$2.webp [T=image/webp,L]
    </IfModule>

    it is possible to load .webp images, although the file extension is .jpg or png. That’s exactly what this code does. This code is an unsellable code and is not part of the cache plugin.

    Request this image and download it. Abracadabra, it’s webp:
    https://www.genshinstuff.com/wp-content/uploads/2019/01/plant1-free-img-600×600.jpg

    Thread Starter gcnj123

    (@superfc7)

    The code is from my last topic
    https://ww.wp.xz.cn/support/topic/webp-not-load-correctly/

    I have already deleted this code, but no use. Do you have any idea fix it?

    serpentdriver

    (@serpentdriver)

    It seems your theme is either a “webp” theme or you or anybody else has added this code. Check upload directory and all subdirectories if there is a .htaccess. If yes, check if there is such code in these/this .htaccess.

    Thread Starter gcnj123

    (@superfc7)

    Yes, i think so.

    Thank you for your help. I mark it as resolved.

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

The topic ‘How to completely disable image optimization’ is closed to new replies.