Skip to content

Commit da3ce54

Browse files
Add JPEG XL image/jxl MIME type (#256)
Co-authored-by: Léo Colombaro <git@colombaro.fr>
1 parent 7abbd96 commit da3ce54

4 files changed

Lines changed: 4 additions & 2 deletions

File tree

h5bp/cross-origin/images.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<IfModule mod_setenvif.c>
1111
<IfModule mod_headers.c>
12-
<FilesMatch "\.(avifs?|bmp|cur|gif|ico|jpe?g|a?png|svgz?|webp)$">
12+
<FilesMatch "\.(avifs?|bmp|cur|gif|ico|jpe?g|jxl|a?png|svgz?|webp)$">
1313
SetEnvIf Origin ":" IS_CORS
1414
Header set Access-Control-Allow-Origin "*" env=IS_CORS
1515
</FilesMatch>

h5bp/media_types/media_types.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
AddType image/avif avif
4343
AddType image/avif-sequence avifs
4444
AddType image/bmp bmp
45+
AddType image/jxl jxl
4546
AddType image/svg+xml svg svgz
4647
AddType image/webp webp
4748
AddType video/mp4 f4v f4p m4v mp4

h5bp/web_performance/cache_expiration.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
ExpiresByType image/bmp "access plus 1 month"
7575
ExpiresByType image/gif "access plus 1 month"
7676
ExpiresByType image/jpeg "access plus 1 month"
77+
ExpiresByType image/jxl "access plus 1 month"
7778
ExpiresByType image/png "access plus 1 month"
7879
ExpiresByType image/svg+xml "access plus 1 month"
7980
ExpiresByType image/webp "access plus 1 month"

h5bp/web_performance/filename-based_cache_busting.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
<IfModule mod_rewrite.c>
1313
RewriteEngine On
1414
RewriteCond %{REQUEST_FILENAME} !-f
15-
RewriteRule ^(.+)\.(\w+)\.(avifs?|bmp|css|cur|gif|ico|jpe?g|m?js|a?png|svgz?|webp|webmanifest)$ $1.$3 [L]
15+
RewriteRule ^(.+)\.(\w+)\.(avifs?|bmp|css|cur|gif|ico|jpe?g|jxl|m?js|a?png|svgz?|webp|webmanifest)$ $1.$3 [L]
1616
</IfModule>

0 commit comments

Comments
 (0)