Skip to content

Commit

Permalink
Improve configs for .rdf files
Browse files Browse the repository at this point in the history
* Make Apache serve `.rdf` files with the charset parameter set to
  `UTF-8`.

* Add configs for the cases¹ when the media type for `.rdf` files
  is set to `application/rdf+xml`, namely, ensure that Apache serves
  files marked with that media type compressed and with far future
  expires headers.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

¹ db69327
  • Loading branch information
alrra committed Sep 13, 2014
1 parent 5bf8db5 commit 742d148
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
@@ -1,5 +1,6 @@
### HEAD

* Improve configs for `.rdf` files.
* Add example on how to allow cross-origin access to the resource's
timing information
[[3df6768](https://github.com/h5bp/server-configs-apache/commit/3df6768e786b7595a656da1675b10c87e7ce18b9)].
Expand Down
3 changes: 3 additions & 0 deletions dist/.htaccess
Expand Up @@ -245,6 +245,7 @@ AddDefaultCharset utf-8
.js \
.json \
.jsonld \
.rdf \
.rss \
.topojson \
.vtt \
Expand Down Expand Up @@ -640,6 +641,7 @@ AddDefaultCharset utf-8
"application/json" \
"application/ld+json" \
"application/manifest+json" \
"application/rdf+xml" \
"application/rss+xml" \
"application/schema+json" \
"application/vnd.geo+json" \
Expand Down Expand Up @@ -742,6 +744,7 @@ FileETag None

# Web feeds
ExpiresByType application/atom+xml "access plus 1 hour"
ExpiresByType application/rdf+xml "access plus 1 hour"
ExpiresByType application/rss+xml "access plus 1 hour"

# Web fonts
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -5,7 +5,7 @@
},
"description": "Boilerplate configurations for the Apache HTTP Server",
"devDependencies": {
"server-configs-test": "https://github.com/h5bp/server-configs-test/tarball/0.4.0"
"server-configs-test": "https://github.com/h5bp/server-configs-test/tarball/0.5.0"
},
"files": [
"dist"
Expand Down
3 changes: 3 additions & 0 deletions test/fixtures/.htaccess
Expand Up @@ -157,6 +157,7 @@ AddDefaultCharset utf-8
.js \
.json \
.jsonld \
.rdf \
.rss \
.topojson \
.vtt \
Expand Down Expand Up @@ -332,6 +333,7 @@ AddDefaultCharset utf-8
"application/json" \
"application/ld+json" \
"application/manifest+json" \
"application/rdf+xml" \
"application/rss+xml" \
"application/schema+json" \
"application/vnd.geo+json" \
Expand Down Expand Up @@ -427,6 +429,7 @@ FileETag None

# Web feeds
ExpiresByType application/atom+xml "access plus 1 hour"
ExpiresByType application/rdf+xml "access plus 1 hour"
ExpiresByType application/rss+xml "access plus 1 hour"

# Web fonts
Expand Down

0 comments on commit 742d148

Please sign in to comment.