From a9aea7038cc3c672eea0794e8af1640fd01ebc99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Colombaro?= Date: Tue, 5 Jan 2021 10:43:36 +0100 Subject: [PATCH] Add mime-type `image/avif` and `image/avifs` --- h5bp/location/web_performance_filename-based_cache_busting.conf | 2 +- mime.types | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/h5bp/location/web_performance_filename-based_cache_busting.conf b/h5bp/location/web_performance_filename-based_cache_busting.conf index 9a27684..b788e8f 100644 --- a/h5bp/location/web_performance_filename-based_cache_busting.conf +++ b/h5bp/location/web_performance_filename-based_cache_busting.conf @@ -9,6 +9,6 @@ # something like `*.css?v231`, please see: # 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; } diff --git a/mime.types b/mime.types index 0d039d8..a899b72 100644 --- a/mime.types +++ b/mime.types @@ -39,6 +39,8 @@ types { audio/x-realaudio ra; audio/x-wav wav; audio/x-matroska mka; + image/avif avif; + image/avif-sequence avifs; image/bmp bmp; image/gif gif; image/jpeg jpeg jpg;