Plugin Support
qtwrk
(@qtwrk)
Yes, I read the article.
I Think that the problem is:
The plugin can only perform WebP replacement on the HTML tag. If the image is loaded via CSS, JS, or some other means, LSCache may not be able to correctly insert the WebP file.
I would to know if there is some methods to bypass this.
thanks
Plugin Support
qtwrk
(@qtwrk)
RewriteCond %{HTTP_ACCEPT} "image/webp"
RewriteCond %{REQUEST_FILENAME}.webp -f
RewriteRule ^(.*).(jpg|jpeg|png|gif) $1.$2.webp [T=image/webp,L]
add this rule at top of your .htaccess
this will force server to send webp file if it exists
the URI will remain unchanged, but under the hood , the format and file is actually webp
Hi, I try but nothing change.
Some image are in webp and other in jpg (logo, gallery)
some ideas?
Plugin Support
qtwrk
(@qtwrk)
Plugin Support
qtwrk
(@qtwrk)
Hi,
Did you apply my workaround rule ?
if so , do you have any .htaccess in /wp-content
or /wp-content/uploads
dir ?
Best regards,
no there are not.
I think that the problem is that the logo is uploaded by the theme option.
Can you control the page code?
https://ceccolinigianfranco.it/
Plugin Support
qtwrk
(@qtwrk)
what is your environment ? is it cPanel or something ?
if you add this
RewriteRule ^(.*).(jpg|jpeg|png|gif) $1.$2.webp [F,L]
at top of your .htaccess
and then access individually , to any of your image , does it give you 403 error ?
Plugin Support
qtwrk
(@qtwrk)
Hi,
I’m going to mark this topic “Resolved”, due to lack of activity.
If you still need help, please submit a ticket in our system
we will investigate it further.
Best regards,