diff --git a/CHANGELOG.md b/CHANGELOG.md index 114b9c58..f646535f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ### HEAD +* Add configs for BlackBerry Maps location documents (`.xloc`). * Add configs for BlackBerry App World files (`.bbaw`) [[352fb62](https://github.com/h5bp/server-configs-apache/commit/352fb62daae4b57cf605c1eb3a836385f6f7e01f)]. diff --git a/dist/.htaccess b/dist/.htaccess index 02b24d16..121e5040 100644 --- a/dist/.htaccess +++ b/dist/.htaccess @@ -128,7 +128,7 @@ Options -MultiViews # the `X-UA-Compatible` response header should be send only for # HTML documents and not for the other resources. - + Header unset X-UA-Compatible @@ -243,6 +243,7 @@ Options -MultiViews AddType application/xml atom rdf rss xml AddType image/webp webp AddType image/x-icon cur ico + AddType text/vnd.rim.location.xloc xloc AddType text/vtt vtt AddType text/x-component htc AddType text/x-vcard vcf @@ -271,6 +272,7 @@ AddDefaultCharset utf-8 .topojson \ .vtt \ .webapp \ + .xloc \ .xml @@ -429,7 +431,7 @@ AddDefaultCharset utf-8 # # the `X-Frame-Options` response header should be send only for # # HTML documents and not for the other resources. -# +# # Header unset X-Frame-Options # @@ -463,7 +465,7 @@ AddDefaultCharset utf-8 # # the `Content-Security-Policy` response header should be send # # only for HTML documents and not for the other resources. -# +# # Header unset Content-Security-Policy # @@ -630,7 +632,7 @@ AddDefaultCharset utf-8 # # the `X-XSS-Protection` response header should be send only for # # HTML documents and not for the other resources. -# +# # Header unset X-XSS-Protection # @@ -720,6 +722,7 @@ AddDefaultCharset utf-8 "text/html" \ "text/javascript" \ "text/plain" \ + "text/vnd.rim.location.xloc" \ "text/vtt" \ "text/x-component" \ "text/xml" diff --git a/src/internet_explorer/x-ua-compatible.conf b/src/internet_explorer/x-ua-compatible.conf index 2e96a541..63073ff4 100644 --- a/src/internet_explorer/x-ua-compatible.conf +++ b/src/internet_explorer/x-ua-compatible.conf @@ -21,7 +21,7 @@ # the `X-UA-Compatible` response header should be send only for # HTML documents and not for the other resources. - + Header unset X-UA-Compatible diff --git a/src/media_types_and_character_encodings/character_encodings.conf b/src/media_types_and_character_encodings/character_encodings.conf index 4ff71f9d..01649fde 100644 --- a/src/media_types_and_character_encodings/character_encodings.conf +++ b/src/media_types_and_character_encodings/character_encodings.conf @@ -20,5 +20,6 @@ AddDefaultCharset utf-8 .topojson \ .vtt \ .webapp \ + .xloc \ .xml diff --git a/src/media_types_and_character_encodings/media_types.conf b/src/media_types_and_character_encodings/media_types.conf index 914d5659..82a8b9d6 100644 --- a/src/media_types_and_character_encodings/media_types.conf +++ b/src/media_types_and_character_encodings/media_types.conf @@ -89,6 +89,7 @@ AddType application/xml atom rdf rss xml AddType image/webp webp AddType image/x-icon cur ico + AddType text/vnd.rim.location.xloc xloc AddType text/vtt vtt AddType text/x-component htc AddType text/x-vcard vcf diff --git a/src/security/content-security-policy.conf b/src/security/content-security-policy.conf index 90e67a4a..0c272521 100644 --- a/src/security/content-security-policy.conf +++ b/src/security/content-security-policy.conf @@ -26,7 +26,7 @@ # the `Content-Security-Policy` response header should be send # only for HTML documents and not for the other resources. - + Header unset Content-Security-Policy diff --git a/src/security/x-frame-option.conf b/src/security/x-frame-option.conf index cbaf5768..9bff77cc 100644 --- a/src/security/x-frame-option.conf +++ b/src/security/x-frame-option.conf @@ -40,7 +40,7 @@ # the `X-Frame-Options` response header should be send only for # HTML documents and not for the other resources. - + Header unset X-Frame-Options diff --git a/src/security/x-xss-protection.conf b/src/security/x-xss-protection.conf index 8f6c6121..d1c3fe94 100644 --- a/src/security/x-xss-protection.conf +++ b/src/security/x-xss-protection.conf @@ -43,7 +43,7 @@ # the `X-XSS-Protection` response header should be send only for # HTML documents and not for the other resources. - + Header unset X-XSS-Protection diff --git a/src/web_performance/compression.conf b/src/web_performance/compression.conf index a4049e88..97164b6f 100644 --- a/src/web_performance/compression.conf +++ b/src/web_performance/compression.conf @@ -63,6 +63,7 @@ "text/html" \ "text/javascript" \ "text/plain" \ + "text/vnd.rim.location.xloc" \ "text/vtt" \ "text/x-component" \ "text/xml" diff --git a/test/fixtures/.htaccess b/test/fixtures/.htaccess index 7946d21a..d71e4502 100644 --- a/test/fixtures/.htaccess +++ b/test/fixtures/.htaccess @@ -108,7 +108,7 @@ Options -MultiViews # the `X-UA-Compatible` response header should be send only for # HTML documents and not for the other resources. - + Header unset X-UA-Compatible @@ -223,6 +223,7 @@ Options -MultiViews AddType application/xml atom rdf rss xml AddType image/webp webp AddType image/x-icon cur ico + AddType text/vnd.rim.location.xloc xloc AddType text/vtt vtt AddType text/x-component htc AddType text/x-vcard vcf @@ -251,6 +252,7 @@ AddDefaultCharset utf-8 .topojson \ .vtt \ .webapp \ + .xloc \ .xml @@ -396,7 +398,7 @@ AddDefaultCharset utf-8 # the `X-Frame-Options` response header should be send only for # HTML documents and not for the other resources. - + Header unset X-Frame-Options @@ -430,7 +432,7 @@ AddDefaultCharset utf-8 # the `Content-Security-Policy` response header should be send # only for HTML documents and not for the other resources. - + Header unset Content-Security-Policy @@ -597,7 +599,7 @@ AddDefaultCharset utf-8 # the `X-XSS-Protection` response header should be send only for # HTML documents and not for the other resources. - + Header unset X-XSS-Protection @@ -673,6 +675,7 @@ AddDefaultCharset utf-8 "text/html" \ "text/javascript" \ "text/plain" \ + "text/vnd.rim.location.xloc" \ "text/vtt" \ "text/x-component" \ "text/xml" diff --git a/test/fixtures/test.xloc b/test/fixtures/test.xloc new file mode 100644 index 00000000..ebb5080a --- /dev/null +++ b/test/fixtures/test.xloc @@ -0,0 +1,3 @@ + + + diff --git a/test/tests.js b/test/tests.js index 82d3e88b..44ac73cd 100644 --- a/test/tests.js +++ b/test/tests.js @@ -94,7 +94,6 @@ exports = module.exports = { 'test.bbaw': { responseHeaders: { - 'cache-control': 'max-age=2592000, no-transform', 'content-encoding': null, 'content-type': 'application/x-bb-appworld; charset=utf-8' } @@ -135,7 +134,6 @@ exports = module.exports = { 'test.f4a': { responseHeaders: { - 'cache-control': 'max-age=2592000, no-transform', 'content-encoding': null, 'content-type': 'audio/mp4' } @@ -496,6 +494,12 @@ exports = module.exports = { } }, + 'test.xloc': { + responseHeaders: { + 'content-type': 'text/vnd.rim.location.xloc; charset=utf-8' + } + }, + 'test.xml': { responseHeaders: { 'cache-control': 'max-age=0, no-transform',