Re: Nginx does not serve avif

2022-10-07 Thread Francis Daly
On Fri, Oct 07, 2022 at 02:00:44PM +0200, Martin Wolfert wrote: Hi there, > i found the issue! Good stuff! > Solution: When enabling the webp caching compatibility in WP Rocket > (WordPress plugin), the nginx rules / config could not work. Because WP > Rocket adds ".webp" as suffix to all .jpg

Re: Nginx does not serve avif

2022-10-07 Thread Martin Wolfert
Hi, i found the issue! Solution: When enabling the webp caching compatibility in WP Rocket (WordPress plugin), the nginx rules / config could not work. Because WP Rocket adds ".webp" as suffix to all .jpg images. So having the suffix set to bla.jpg.webp, the Nginx location ( /location ~ \.(jp

Re: Nginx does not serve avif

2022-10-07 Thread Martin Wolfert
Hi, well, i would say thet using curl, delivering avif works: Downloading the jpg without headers gives back another filesize as with given webp and avif headers. So ... yes, also my configuration seams to work with curl. Why browsers who should support avif only serve webpand not avif (e.g.

Re: Nginx does not serve avif

2022-10-06 Thread Francis Daly
On Thu, Oct 06, 2022 at 02:30:08PM +0200, Martin Wolfert wrote: Hi there, > In "/var/www/htdocs/blog.lichttraeumer.de/wp-content/uploads/2022/05" i have > located .jpg, .webp and .avif files: Thanks for the details. Both ideas seem to work for me, when testing with curl: === $ cat /etc/nginx/c

Re: Nginx does not serve avif

2022-10-06 Thread Martin Wolfert
18 schrieb Francis Daly: On Wed, Sep 28, 2022 at 10:49:15AM +0200, Martin Wolfert wrote: Hi there, i want to use new image files. That means: first serve (if available) avif, than webp and lastly jpg images.     location ~* ^/wp-content/.*/.*/.*\.(png|jpg)$ {         add_header Vary A

Re: Nginx does not serve avif

2022-09-28 Thread Francis Daly
Vary Accept; >     try_files   $uri$img_ext $uri =404; >     } > Unfortunately ... Nginx does not serve avif files, if available. Tested it > with the newest Chrome Versions. > > Anyone any idea where my error is located? When you make the request for /dir/thing.png, do

Nginx does not serve avif

2022-09-28 Thread Martin Wolfert
} mime.types: ...     image/webp    webp;     image/avif   avif;     image/avif-sequence   avifs; Unfortunately ... Nginx does not serve avif files, if available. Tested it with the ne