Skip to content

Commit

Permalink
Compress vCard files (.vcard/.vcf)
Browse files Browse the repository at this point in the history
vCard file are basically text files, therefore, they compress quite
nicely. Also, browsers don't seem to encounter any problems when these
types of files are served compressed.
  • Loading branch information
alrra committed Oct 16, 2014
1 parent 104f232 commit a076635
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
@@ -1,6 +1,8 @@
### HEAD

* Serve `.vcf` and `.vcard` file with the `text/vcard` media type.
* Compress vCard files (`.vcard`/`.vcf`).
* Serve vCard files (`.vcard`/`.vcf`) with the `text/vcard` media type
[[104f232](https://github.com/h5bp/server-configs-apache/commit/104f232dad100ddd5c8cf0c354c2bcd163a6b915)].
* Add configs for BlackBerry Maps location documents (`.xloc`)
[[20000d1](https://github.com/h5bp/server-configs-apache/commit/20000d1741701eede2e0903b2b86992d8b70c35a)].
* Add configs for BlackBerry App World files (`.bbaw`)
Expand Down Expand Up @@ -42,7 +44,7 @@

### 2.5.0 (June 14, 2014)

* Compress cache manifest files (`.appcache` / `.manifest`)
* Compress cache manifest files (`.appcache`/`.manifest`)
[[d819fec](https://github.com/h5bp/server-configs-apache/commit/d819fecd81e1d23fb5f153995f573890b037a82c)].
* 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 dist/.htaccess
Expand Up @@ -722,6 +722,7 @@ AddDefaultCharset utf-8
"text/html" \
"text/javascript" \
"text/plain" \
"text/vcard" \
"text/vnd.rim.location.xloc" \
"text/vtt" \
"text/x-component" \
Expand Down
1 change: 1 addition & 0 deletions src/web_performance/compression.conf
Expand Up @@ -63,6 +63,7 @@
"text/html" \
"text/javascript" \
"text/plain" \
"text/vcard" \
"text/vnd.rim.location.xloc" \
"text/vtt" \
"text/x-component" \
Expand Down
1 change: 1 addition & 0 deletions test/fixtures/.htaccess
Expand Up @@ -675,6 +675,7 @@ AddDefaultCharset utf-8
"text/html" \
"text/javascript" \
"text/plain" \
"text/vcard" \
"text/vnd.rim.location.xloc" \
"text/vtt" \
"text/x-component" \
Expand Down
2 changes: 0 additions & 2 deletions test/tests.js
Expand Up @@ -442,14 +442,12 @@ exports = module.exports = {

'test.vcard': {
responseHeaders: {
'content-encoding': null,
'content-type': 'text/vcard'
}
},

'test.vcf': {
responseHeaders: {
'content-encoding': null,
'content-type': 'text/vcard'
}
},
Expand Down

0 comments on commit a076635

Please sign in to comment.