Add mime-type `image/avif` and `image/avifs`

This commit is contained in:
Léo Colombaro 2021-01-05 10:43:36 +01:00
parent 18f129051b
commit a9aea7038c
2 changed files with 3 additions and 1 deletions

View File

@ -9,6 +9,6 @@
# something like `*.css?v231`, please see: # something like `*.css?v231`, please see:
# https://www.stevesouders.com/blog/2008/08/23/revving-filenames-dont-use-querystring/ # https://www.stevesouders.com/blog/2008/08/23/revving-filenames-dont-use-querystring/
location ~* (.+)\.(?:\w+)\.(bmp|css|cur|gif|ico|jpe?g|m?js|png|svgz?|webp|webmanifest)$ { location ~* (.+)\.(?:\w+)\.(avifs?|bmp|css|cur|gif|ico|jpe?g|m?js|a?png|svgz?|webp|webmanifest)$ {
try_files $uri $1.$2; try_files $uri $1.$2;
} }

View File

@ -39,6 +39,8 @@ types {
audio/x-realaudio ra; audio/x-realaudio ra;
audio/x-wav wav; audio/x-wav wav;
audio/x-matroska mka; audio/x-matroska mka;
image/avif avif;
image/avif-sequence avifs;
image/bmp bmp; image/bmp bmp;
image/gif gif; image/gif gif;
image/jpeg jpeg jpg; image/jpeg jpeg jpg;