From 165314100d24dbb257e1707541da16ded01de7cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Colombaro?= Date: Sun, 1 May 2022 12:49:27 +0000 Subject: [PATCH] Release v5.1.0 --- CHANGELOG.md | 8 +++++ dist/.htaccess | 95 ++++++++++++++++++++++++++++---------------------- package.json | 2 +- 3 files changed, 62 insertions(+), 43 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 616919d3..e1fd76f5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +### 5.1.0 (May 9, 2022) + +* Extend default, media and font cache TTL to 1 year [[5df6946](https://github.com/h5bp/server-configs-apache/commit/5df69464885605ded1f4b0ef04cb84f1b8bd8010)] +* Support `ETags` at server level [[7956cbc](https://github.com/h5bp/server-configs-apache/commit/7956cbcecd33c20f13357284f3f355c658755115)] +* Add `image/x-icon` compression support [[69ddeda](https://github.com/h5bp/server-configs-apache/commit/69ddeda3781762eb2aba8b5152f2e9d2fa56c90a)] +* Improve module checks validations [[cb8ef1b](https://github.com/h5bp/server-configs-apache/commit/cb8ef1be06a93d43db6dc525005e2638b8ef687b])] +* Improve inline comments + ### 5.0.0 (July 31, 2021) * ⚠️ **Breaking**: End of support for Internet Explorer (`X-UA-Compatible` and `X-XSS-Protection` headers) diff --git a/dist/.htaccess b/dist/.htaccess index e8f97f15..2af2e5c9 100644 --- a/dist/.htaccess +++ b/dist/.htaccess @@ -1,11 +1,11 @@ -# Apache Server Configs v5.0.0 | MIT License +# Apache Server Configs v5.1.0 | MIT License # https://github.com/h5bp/server-configs-apache # (!) Using `.htaccess` files slows down Apache, therefore, if you have -# access to the main server configuration file (which is usually called -# `httpd.conf`), you should add this logic there. +# access to the main server configuration file (which is usually +# called `httpd.conf`), you should add this logic there. # -# https://httpd.apache.org/docs/current/howto/htaccess.html +# https://httpd.apache.org/docs/current/howto/htaccess.html # ###################################################################### # # CROSS-ORIGIN # @@ -883,6 +883,7 @@ ServerSignature Off "image/bmp" \ "image/svg+xml" \ "image/vnd.microsoft.icon" \ + "image/x-icon" \ "text/cache-manifest" \ "text/calendar" \ "text/css" \ @@ -939,7 +940,7 @@ ServerSignature Off # # https://httpd.apache.org/docs/current/mod/mod_brotli.html#precompressed -# +# # RewriteCond %{HTTP:Accept-Encoding} br # RewriteCond %{REQUEST_FILENAME}\.br -f @@ -969,13 +970,17 @@ ServerSignature Off # .json.br # -# # Force proxies to cache brotlied and non-brotlied files separately -# Header append Vary Accept-Encoding +# +# # Force proxies to cache brotlied and non-brotlied files separately +# Header append Vary Accept-Encoding +# # -# # Serve correct encoding type -# AddEncoding br .br +# +# # Serve correct encoding type +# AddEncoding br .br +# # @@ -997,7 +1002,7 @@ ServerSignature Off # keep the default behavior regarding .gz files. # https://httpd.apache.org/docs/current/mod/mod_mime.html#removetype -# +# # RewriteCond %{HTTP:Accept-Encoding} gzip # RewriteCond %{REQUEST_FILENAME}\.gz -f @@ -1008,7 +1013,6 @@ ServerSignature Off # -# # Serve correct content types # # # (1) # RemoveType gz @@ -1028,13 +1032,17 @@ ServerSignature Off # .json.gz # -# # Force proxies to cache gzipped and non-gzipped files separately -# Header append Vary Accept-Encoding +# +# # Force proxies to cache gzipped and non-gzipped files separately +# Header append Vary Accept-Encoding +# # -# # Serve correct encoding type -# AddEncoding gzip .gz +# +# # Serve correct encoding type +# AddEncoding gzip .gz +# # @@ -1076,6 +1084,9 @@ ServerSignature Off # Remove `ETags` as resources are sent with far-future expires headers. # +# Apache `ETags` might have an unexpected behavior if `DeflateAlterETag` +# can't be changed (which is the case at `.htaccess` level). +# # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag # https://developer.yahoo.com/performance/rules.html#etags # https://tools.ietf.org/html/rfc7232#section-2.3 @@ -1103,7 +1114,7 @@ FileETag None ExpiresActive on - ExpiresDefault "access plus 1 month" + ExpiresDefault "access plus 1 year" # CSS @@ -1156,20 +1167,20 @@ FileETag None # Media files - ExpiresByType audio/ogg "access plus 1 month" - ExpiresByType image/apng "access plus 1 month" - ExpiresByType image/avif "access plus 1 month" - ExpiresByType image/avif-sequence "access plus 1 month" - ExpiresByType image/bmp "access plus 1 month" - ExpiresByType image/gif "access plus 1 month" - ExpiresByType image/jpeg "access plus 1 month" - ExpiresByType image/jxl "access plus 1 month" - ExpiresByType image/png "access plus 1 month" - ExpiresByType image/svg+xml "access plus 1 month" - ExpiresByType image/webp "access plus 1 month" - ExpiresByType video/mp4 "access plus 1 month" - ExpiresByType video/ogg "access plus 1 month" - ExpiresByType video/webm "access plus 1 month" + ExpiresByType audio/ogg "access plus 1 year" + ExpiresByType image/apng "access plus 1 year" + ExpiresByType image/avif "access plus 1 year" + ExpiresByType image/avif-sequence "access plus 1 year" + ExpiresByType image/bmp "access plus 1 year" + ExpiresByType image/gif "access plus 1 year" + ExpiresByType image/jpeg "access plus 1 year" + ExpiresByType image/jxl "access plus 1 year" + ExpiresByType image/png "access plus 1 year" + ExpiresByType image/svg+xml "access plus 1 year" + ExpiresByType image/webp "access plus 1 year" + ExpiresByType video/mp4 "access plus 1 year" + ExpiresByType video/ogg "access plus 1 year" + ExpiresByType video/webm "access plus 1 year" # WebAssembly @@ -1180,28 +1191,28 @@ FileETag None # Web fonts # Collection - ExpiresByType font/collection "access plus 1 month" + ExpiresByType font/collection "access plus 1 year" # Embedded OpenType (EOT) - ExpiresByType application/vnd.ms-fontobject "access plus 1 month" - ExpiresByType font/eot "access plus 1 month" + ExpiresByType application/vnd.ms-fontobject "access plus 1 year" + ExpiresByType font/eot "access plus 1 year" # OpenType - ExpiresByType font/opentype "access plus 1 month" - ExpiresByType font/otf "access plus 1 month" + ExpiresByType font/opentype "access plus 1 year" + ExpiresByType font/otf "access plus 1 year" # TrueType - ExpiresByType application/x-font-ttf "access plus 1 month" - ExpiresByType font/ttf "access plus 1 month" + ExpiresByType application/x-font-ttf "access plus 1 year" + ExpiresByType font/ttf "access plus 1 year" # Web Open Font Format (WOFF) 1.0 - ExpiresByType application/font-woff "access plus 1 month" - ExpiresByType application/x-font-woff "access plus 1 month" - ExpiresByType font/woff "access plus 1 month" + ExpiresByType application/font-woff "access plus 1 year" + ExpiresByType application/x-font-woff "access plus 1 year" + ExpiresByType font/woff "access plus 1 year" # Web Open Font Format (WOFF) 2.0 - ExpiresByType application/font-woff2 "access plus 1 month" - ExpiresByType font/woff2 "access plus 1 month" + ExpiresByType application/font-woff2 "access plus 1 year" + ExpiresByType font/woff2 "access plus 1 year" # Other diff --git a/package.json b/package.json index 14642b71..b221d61d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "apache-server-configs", - "version": "5.0.0", + "version": "5.1.0", "author": "The H5BP Team", "description": "Boilerplate configurations for the Apache HTTP server", "repository": "h5bp/server-configs-apache",