diff --git a/CHANGELOG.md b/CHANGELOG.md index ebe247a1..a63aaf70 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ### HEAD +* Add configs for files marked as `text/x-cross-domain-policy`. * Add configs for files marked as `image/vnd.microsoft.icon` [[0ba37cb](https://github.com/h5bp/server-configs-apache/commit/0ba37cb77de29b29e44145046a936483aeb1bfc5)]. * Add configs for files marked as `font/eot` diff --git a/dist/.htaccess b/dist/.htaccess index a960500c..127c2095 100644 --- a/dist/.htaccess +++ b/dist/.htaccess @@ -734,6 +734,7 @@ AddDefaultCharset utf-8 "text/vnd.rim.location.xloc" \ "text/vtt" \ "text/x-component" \ + "text/x-cross-domain-policy" \ "text/xml" @@ -866,6 +867,9 @@ FileETag None ExpiresByType font/opentype "access plus 1 month" ExpiresByType image/svg+xml "access plus 1 month" + # Other + ExpiresByType text/x-cross-domain-policy "access plus 1 week" + # ---------------------------------------------------------------------- diff --git a/src/web_performance/compression.conf b/src/web_performance/compression.conf index 931412f5..46ac519e 100644 --- a/src/web_performance/compression.conf +++ b/src/web_performance/compression.conf @@ -56,6 +56,7 @@ "text/vnd.rim.location.xloc" \ "text/vtt" \ "text/x-component" \ + "text/x-cross-domain-policy" \ "text/xml" diff --git a/src/web_performance/expires_headers.conf b/src/web_performance/expires_headers.conf index 0809c946..987906ab 100644 --- a/src/web_performance/expires_headers.conf +++ b/src/web_performance/expires_headers.conf @@ -67,4 +67,7 @@ ExpiresByType font/opentype "access plus 1 month" ExpiresByType image/svg+xml "access plus 1 month" + # Other + ExpiresByType text/x-cross-domain-policy "access plus 1 week" + diff --git a/test/fixtures/.htaccess b/test/fixtures/.htaccess index e2d1745b..f93f9c26 100644 --- a/test/fixtures/.htaccess +++ b/test/fixtures/.htaccess @@ -686,6 +686,7 @@ AddDefaultCharset utf-8 "text/vnd.rim.location.xloc" \ "text/vtt" \ "text/x-component" \ + "text/x-cross-domain-policy" \ "text/xml" @@ -818,6 +819,9 @@ FileETag None ExpiresByType font/opentype "access plus 1 month" ExpiresByType image/svg+xml "access plus 1 month" + # Other + ExpiresByType text/x-cross-domain-policy "access plus 1 week" + # ----------------------------------------------------------------------