I refer to image substitution with a webp image.
LightSpeed cache appends webp to image file name when it serves webp images.
For example a file xyz.png is replaced with the file xyz.png.webp
The current rules in the htaccess files are -
### marker WEBP start ###
RewriteCond %{HTTP_ACCEPT} "image/webp" [or]
RewriteCond %{HTTP_USER_AGENT} "Page Speed"
RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp]
RewriteCond %{HTTP_USER_AGENT} iPhone.*Version/(\d{2}).*Safari
RewriteCond %1 >13
RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp]
### marker WEBP end ###
Can you please provide the htaccess rules to simply change the extension of image files to webp. In the above given example the name of the image file
will become xyz.webp (as opposed to xyz.png.webp.
Many Thanks for your help
LightSpeed cache appends webp to image file name when it serves webp images.
For example a file xyz.png is replaced with the file xyz.png.webp
The current rules in the htaccess files are -
### marker WEBP start ###
RewriteCond %{HTTP_ACCEPT} "image/webp" [or]
RewriteCond %{HTTP_USER_AGENT} "Page Speed"
RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp]
RewriteCond %{HTTP_USER_AGENT} iPhone.*Version/(\d{2}).*Safari
RewriteCond %1 >13
RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp]
### marker WEBP end ###
Can you please provide the htaccess rules to simply change the extension of image files to webp. In the above given example the name of the image file
will become xyz.webp (as opposed to xyz.png.webp.
Many Thanks for your help