Skip to content

Conversation

@xt0rted
Copy link
Contributor

@xt0rted xt0rted commented Mar 6, 2025

Add avif MIME type

  • You've read the Contributor Guide and Code of Conduct.
  • You've included unit or integration tests for your change, where applicable.
  • You've included inline docs for your change, where applicable.
  • There's an open issue for the PR that you are making. If you'd like to propose a new feature or change, please open an issue to discuss the change or find an existing issue.

Summary of the changes (Less than 80 chars)

Add avif extension to list of files used by static file middleware.

Description

This is a common image format supported by all major browsers now1, adding it will make it easier for people to use this format.

There's a couple Http.config files used in unit tests where this wasn't added. I didn't bother since webp wasn't in there, but I can add them if needed.

Fixes #39984

Footnotes

  1. https://caniuse.com/avif

@xt0rted xt0rted requested review from a team and BrennanConroy as code owners March 6, 2025 23:23
@ghost ghost added the area-blazor Includes: Blazor, Razor Components label Mar 6, 2025
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Mar 6, 2025
@javiercn javiercn merged commit 3b261f8 into dotnet:main Mar 7, 2025
27 checks passed
@javiercn
Copy link
Member

javiercn commented Mar 7, 2025

@xt0rted thanks for the contribution!

@dotnet-policy-service dotnet-policy-service bot added this to the 10.0-preview3 milestone Mar 7, 2025
@xt0rted xt0rted deleted the avif-mime-type branch March 7, 2025 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-blazor Includes: Blazor, Razor Components community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add avif images to default known static file MIME types

2 participants