Skip to content

Commit

Permalink
Compress cache manifest files (.appcache/manifest)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
alrra committed Jun 14, 2014
1 parent f4ee508 commit d819fec
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
### HEAD

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

Expand Down
1 change: 1 addition & 0 deletions src/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,7 @@ AddDefaultCharset utf-8
font/opentype \
image/svg+xml \
image/x-icon \
text/cache-manifest \
text/css \
text/html \
text/plain \
Expand Down
1 change: 1 addition & 0 deletions test/fixtures/content/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ AddDefaultCharset utf-8
font/opentype \
image/svg+xml \
image/x-icon \
text/cache-manifest \
text/css \
text/html \
text/plain \
Expand Down
2 changes: 0 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ var tests = [
'test.appcache': {
headers: generateHeaders({
'cache-control': 'max-age=0, no-transform',
'content-encoding': undefined,
'content-type': 'text/cache-manifest'
})
},
Expand Down Expand Up @@ -245,7 +244,6 @@ var tests = [
'test.manifest': {
headers: generateHeaders({
'cache-control': 'max-age=0, no-transform',
'content-encoding': undefined,
'content-type': 'text/cache-manifest'
})
},
Expand Down

0 comments on commit d819fec

Please sign in to comment.