Welcome! Log In Create A New Profile

Advanced

Re: Nginx does not serve avif

All files from this thread

File Name File Size   Posted by Date  
Bildschirmfoto 2022-10-07 um 11.42.46.png 42 KB open | download Martin Wolfert 10/07/2022 Read message
Bildschirmfoto 2022-10-07 um 11.42.46.png 42 KB open | download Martin Wolfert 10/07/2022 Read message
Francis Daly
October 07, 2022 08:16AM
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 images. So having the suffix set
> to bla.jpg.webp, the Nginx location ( /location ~ \.(jpg|png)$ {/ ) for sure
> could not match! So disabling the webp caching compatibilty in WP Rocket
> solves the problem.

Nice.

My next guess would have been that the browser was requesting thing.jpg,
and getting back content that was not a jpeg image, and was getting
confused by that mismatch.

My guess would have been wrong :-)

Cheers,

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list -- nginx@nginx.org
To unsubscribe send an email to nginx-leave@nginx.org
Subject Author Posted

Nginx does not serve avif

Martin Wolfert September 28, 2022 04:52AM

Re: Nginx does not serve avif

Francis Daly September 28, 2022 05:20PM

Re: Nginx does not serve avif

Martin Wolfert October 06, 2022 08:32AM

Re: Nginx does not serve avif

Francis Daly October 06, 2022 05:46PM

Re: Nginx does not serve avif Attachments

Martin Wolfert October 07, 2022 06:06AM

Re: Nginx does not serve avif Attachments

Martin Wolfert October 07, 2022 08:02AM

Re: Nginx does not serve avif

Francis Daly October 07, 2022 08:16AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 274
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready