Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R&D for NGINX AVIF/WEBP rewrite rules #821

Closed
MathieuLamiot opened this issue Feb 27, 2024 · 0 comments · Fixed by #824
Closed

R&D for NGINX AVIF/WEBP rewrite rules #821

MathieuLamiot opened this issue Feb 27, 2024 · 0 comments · Fixed by #824
Assignees

Comments

@MathieuLamiot
Copy link
Contributor

We need to do a research related to AVIF/WEBP NGINX rewrite rules. The objective is for them to work on:

  1. Local NGINX environments
  2. Our WordOps environment

The AC:

  1. When browser accepts AVIF and WebP, the order of displaying should be 'AVIF > WEBP > Optimized Image'
  2. If browser doesn't accept AVIF, we should display: 'WEBP > Optimized Image'
  3. If browser doesn't accept WEBP, we should display 'Optimized image'
  4. It should be possible by adding the rewwrite rules only to the server directive

There is no possibility that the browser accepts AVIF but no WEBP:
https://caniuse.com/?search=webp
https://caniuse.com/?search=avif

@wordpressfan wordpressfan linked a pull request Feb 28, 2024 that will close this issue
19 tasks
@Mai-Saad Mai-Saad self-assigned this Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants