Skip to content

Commit

Permalink
Add JPEG XL image/jxl MIME type (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
philwareham committed Jun 24, 2021
1 parent db79ae4 commit b9ef881
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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+)\.(avifs?|bmp|css|cur|gif|ico|jpe?g|m?js|a?png|svgz?|webp|webmanifest)$ {
location ~* (.+)\.(?:\w+)\.(avifs?|bmp|css|cur|gif|ico|jpe?g|jxl|m?js|a?png|svgz?|webp|webmanifest)$ {
try_files $uri $1.$2;
}
1 change: 1 addition & 0 deletions mime.types
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ types {
image/bmp bmp;
image/gif gif;
image/jpeg jpeg jpg;
image/jxl jxl;
image/jxr jxr hdp wdp;
image/png png;
image/svg+xml svg svgz;
Expand Down

0 comments on commit b9ef881

Please sign in to comment.