Commit bd79e7bb authored by Chris Müller's avatar Chris Müller Committed by Benni Mack
Browse files

[TASK] Add image formats avif/avifs to htaccess

Additionally, use "On" as value for ExpiresActive directive
as this is the preferred notation.

Resolves: #97764
Releases: main, 11.5
Change-Id: Iee2433cf88cc7b7200a72c7d5308da0202fe3e78

Tested-by: core-ci's avatarcore-ci <>
Tested-by: Stefan Bürk's avatarStefan Bürk <>
Tested-by: Benni Mack's avatarBenni Mack <>
Reviewed-by: Stefan Bürk's avatarStefan Bürk <>
Reviewed-by: Benni Mack's avatarBenni Mack <>
parent 86330504
......@@ -111,7 +111,7 @@
# This affects Frontend and Backend and increases performance.
<IfModule mod_expires.c>
ExpiresActive on
ExpiresActive On
ExpiresDefault "access plus 1 month"
ExpiresByType text/css "access plus 1 year"
......@@ -259,7 +259,7 @@ AddDefaultCharset utf-8
# Send the CORS header for images when browsers request it.
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
<FilesMatch "\.(bmp|cur|gif|ico|jpe?g|png|svgz?|webp)$">
<FilesMatch "\.(avifs?|bmp|cur|gif|ico|jpe?g|png|svgz?|webp)$">
SetEnvIf Origin ":" IS_CORS
Header set Access-Control-Allow-Origin "*" env=IS_CORS
......@@ -375,7 +375,7 @@ Options -MultiViews
<IfModule mod_headers.c>
# Force IE to render pages in the highest available mode
Header set X-UA-Compatible "IE=edge"
<FilesMatch "\.(appcache|crx|css|eot|gif|htc|ico|jpe?g|js|m4a|m4v|manifest|mp4|oex|oga|ogg|ogv|otf|pdf|png|safariextz|svgz?|ttf|vcf|webapp|webm|webp|woff2?|xml|xpi)$">
<FilesMatch "\.(appcache|avifs?|crx|css|eot|gif|htc|ico|jpe?g|js|m4a|m4v|manifest|mp4|oex|oga|ogg|ogv|otf|pdf|png|safariextz|svgz?|ttf|vcf|webapp|webm|webp|woff2?|xml|xpi)$">
Header unset X-UA-Compatible
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment