Skip to content

Commit c805353

Browse files
committed
Remove the .manifest → text/cache-manifest mapping
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/
1 parent 3548b4c commit c805353

File tree

6 files changed

+5
-26
lines changed

6 files changed

+5
-26
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
### HEAD
22

3-
* Remove mapping of `.php` files to `text/html`
3+
* Remove the mapping of `.manifest` files to the `text/cache-manifest` media type.
4+
* Remove the mapping of `.php` files to the `text/html` media type
45
[[daab35b](https://github.com/h5bp/server-configs-apache/commit/daab35bc91c299da23efdfa740f13a46ad10612a)].
56

67
### 2.12.0 (March 2, 2015)

dist/.htaccess

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ Options -MultiViews
217217
# </Files>
218218

219219
AddType application/x-web-app-manifest+json webapp
220-
AddType text/cache-manifest appcache manifest
220+
AddType text/cache-manifest appcache
221221

222222

223223
# Media files

src/media_types/media_types.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
# </Files>
6262

6363
AddType application/x-web-app-manifest+json webapp
64-
AddType text/cache-manifest appcache manifest
64+
AddType text/cache-manifest appcache
6565

6666

6767
# Media files

test/fixtures/.htaccess

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ Options -MultiViews
197197
# </Files>
198198

199199
AddType application/x-web-app-manifest+json webapp
200-
AddType text/cache-manifest appcache manifest
200+
AddType text/cache-manifest appcache
201201

202202

203203
# Media files

test/fixtures/test.manifest

-15
This file was deleted.

test/tests.js

-7
Original file line numberDiff line numberDiff line change
@@ -287,13 +287,6 @@ exports = module.exports = {
287287
}
288288
},
289289

290-
'test.manifest': {
291-
responseHeaders: {
292-
'cache-control': 'max-age=0, no-transform',
293-
'content-type': 'text/cache-manifest'
294-
}
295-
},
296-
297290
'test.map': {
298291
responseHeaders: {
299292
'cache-control': 'max-age=0, no-transform',

0 commit comments

Comments
 (0)