Skip to content

Commit d819fec

Browse files
committed
Compress cache manifest files (.appcache/manifest)
* Cache manifest files are basically text files, therefore, they compress quite nicely. * Browsers that have support for the application cache mechanism don't seem to encounter any problems when the cache manifest files are being served compressed. See also: http://www.whatwg.org/specs/web-apps/current-work/multipage/offline.html
1 parent f4ee508 commit d819fec

File tree

4 files changed

+3
-2
lines changed

4 files changed

+3
-2
lines changed

CHANGELOG.md

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

3+
* Compress cache manifest files (`.appcache` / `.manifest`).
34
* Move all compression related configs under the `Compression` section
45
[[73a107e](https://github.com/h5bp/server-configs-apache/commit/73a107ed0cb9ae4b3ec966e8e246b7a6f4bbd059)].
56

src/.htaccess

+1
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,7 @@ AddDefaultCharset utf-8
595595
font/opentype \
596596
image/svg+xml \
597597
image/x-icon \
598+
text/cache-manifest \
598599
text/css \
599600
text/html \
600601
text/plain \

test/fixtures/content/.htaccess

+1
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ AddDefaultCharset utf-8
329329
font/opentype \
330330
image/svg+xml \
331331
image/x-icon \
332+
text/cache-manifest \
332333
text/css \
333334
text/html \
334335
text/plain \

test/test.js

-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ var tests = [
6161
'test.appcache': {
6262
headers: generateHeaders({
6363
'cache-control': 'max-age=0, no-transform',
64-
'content-encoding': undefined,
6564
'content-type': 'text/cache-manifest'
6665
})
6766
},
@@ -245,7 +244,6 @@ var tests = [
245244
'test.manifest': {
246245
headers: generateHeaders({
247246
'cache-control': 'max-age=0, no-transform',
248-
'content-encoding': undefined,
249247
'content-type': 'text/cache-manifest'
250248
})
251249
},

0 commit comments

Comments
 (0)