How to make AutoCorrect enhance the images via htaccess?

Friends, help to understand, why doesn't AutoCorrect extension using htaccess. In fact it should be replace the jpg/png to webp if your browser supports webp. In the post is always specified by the picture .jpg
Replacement works if only to remove in a folder of picture with the extension .jpg or to change .jpeg (random)
And I know that the console will still reflect what images extension .jpg and the fact that there is a substitution for webp is seen only in the column type console vibrostability.
Here is the code:
<ifmodule mod_rewrite.c>
 RewriteEngine On

 # Check if browser supports WebP images
 RewriteCond %{HTTP_ACCEPT} image/webp

 # Check if WebP replacement image exists
 RewriteCond %{DOCUMENT_ROOT}/$1.webp-f

 # Serve a WebP image instead
 RewriteRule (.+)\.(jpe?g|png)$ $1.webp [T=image/webp,E=accept:1]
</ifmodule>

<ifmodule mod_headers.c>
 Header append Vary Accept env=REDIRECT_accept
</ifmodule>

<ifmodule mod_mime.c>
 AddType image/webp .webp
</ifmodule>
June 8th 19 at 16:47
0 answer

Find more questions by tags htaccess