From c805353c4142c792267945687309259fc15b2106 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C4=83t=C4=83lin=20Mari=C8=99?= Date: Wed, 4 Mar 2015 15:37:31 +0200 Subject: [PATCH] =?UTF-8?q?Remove=20the=20.manifest=20=E2=86=92=20text/cac?= =?UTF-8?q?he-manifest=20mapping?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Four years ago the recommended file extension for AppCache manifest files was changed¹ from `.manifest` to `.appcache`. So, even adding into consideration the transitional period, it no longer makes sense to keep the configurations that ensure that `.manifest` files are served with the AppCache required `text/cache-manifest` media type. Also, recently, `.manifest` became one of the recommended file extensions for web application manifest² files. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ¹ https://html5.org/r/5812 ² http://w3c.github.io/manifest/ --- CHANGELOG.md | 3 ++- dist/.htaccess | 2 +- src/media_types/media_types.conf | 2 +- test/fixtures/.htaccess | 2 +- test/fixtures/test.manifest | 15 --------------- test/tests.js | 7 ------- 6 files changed, 5 insertions(+), 26 deletions(-) delete mode 100644 test/fixtures/test.manifest diff --git a/CHANGELOG.md b/CHANGELOG.md index f1c4fac5..f7e15e14 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ### HEAD -* Remove mapping of `.php` files to `text/html` +* Remove the mapping of `.manifest` files to the `text/cache-manifest` media type. +* Remove the mapping of `.php` files to the `text/html` media type [[daab35b](https://github.com/h5bp/server-configs-apache/commit/daab35bc91c299da23efdfa740f13a46ad10612a)]. ### 2.12.0 (March 2, 2015) diff --git a/dist/.htaccess b/dist/.htaccess index 4028bdfa..aec62147 100644 --- a/dist/.htaccess +++ b/dist/.htaccess @@ -217,7 +217,7 @@ Options -MultiViews # AddType application/x-web-app-manifest+json webapp - AddType text/cache-manifest appcache manifest + AddType text/cache-manifest appcache # Media files diff --git a/src/media_types/media_types.conf b/src/media_types/media_types.conf index 29db6a0f..9e63bde5 100644 --- a/src/media_types/media_types.conf +++ b/src/media_types/media_types.conf @@ -61,7 +61,7 @@ # AddType application/x-web-app-manifest+json webapp - AddType text/cache-manifest appcache manifest + AddType text/cache-manifest appcache # Media files diff --git a/test/fixtures/.htaccess b/test/fixtures/.htaccess index 367bc440..638f8c78 100644 --- a/test/fixtures/.htaccess +++ b/test/fixtures/.htaccess @@ -197,7 +197,7 @@ Options -MultiViews # AddType application/x-web-app-manifest+json webapp - AddType text/cache-manifest appcache manifest + AddType text/cache-manifest appcache # Media files diff --git a/test/fixtures/test.manifest b/test/fixtures/test.manifest deleted file mode 100644 index f48cc732..00000000 --- a/test/fixtures/test.manifest +++ /dev/null @@ -1,15 +0,0 @@ -CACHE MANIFEST -# v1.0.0 - -CACHE: -/favicon.ico -index.html -css/main.css -img/logo.png -js/main.js - -NETWORK: -* - -FALLBACK: -/ /offline.html diff --git a/test/tests.js b/test/tests.js index 8b0a07d9..715dc8f2 100644 --- a/test/tests.js +++ b/test/tests.js @@ -287,13 +287,6 @@ exports = module.exports = { } }, - 'test.manifest': { - responseHeaders: { - 'cache-control': 'max-age=0, no-transform', - 'content-type': 'text/cache-manifest' - } - }, - 'test.map': { responseHeaders: { 'cache-control': 'max-age=0, no-transform',