I
I
Ilya Derevyannykh2020-10-19 20:15:56
htaccess
Ilya Derevyannykh, 2020-10-19 20:15:56

Why don't all pictures change to webp?

Replacement goes through the WpRocket plugin

RewriteCond %{HTTP_ACCEPT} image/webp
RewriteCond "%{DOCUMENT_ROOT}/wp-content/cache/wp-rocket/%{HTTP_HOST}%{REQUEST_URI}/.no-webp" !-f
RewriteRule .* - [E=WPR_WEBP:-webp]
<IfModule mod_headers.c>
  Header append Vary Accept env=REDIRECT_accept
</IfModule>
AddType image/webp .webp


Some pictures change on the page , some don't.
What can be done?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question