Skip to content

Commit 742d148

Browse files
committed
Improve configs for .rdf files
* 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
1 parent 5bf8db5 commit 742d148

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

CHANGELOG.md

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

3+
* Improve configs for `.rdf` files.
34
* Add example on how to allow cross-origin access to the resource's
45
timing information
56
[[3df6768](https://github.com/h5bp/server-configs-apache/commit/3df6768e786b7595a656da1675b10c87e7ce18b9)].

dist/.htaccess

+3
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ AddDefaultCharset utf-8
245245
.js \
246246
.json \
247247
.jsonld \
248+
.rdf \
248249
.rss \
249250
.topojson \
250251
.vtt \
@@ -640,6 +641,7 @@ AddDefaultCharset utf-8
640641
"application/json" \
641642
"application/ld+json" \
642643
"application/manifest+json" \
644+
"application/rdf+xml" \
643645
"application/rss+xml" \
644646
"application/schema+json" \
645647
"application/vnd.geo+json" \
@@ -742,6 +744,7 @@ FileETag None
742744

743745
# Web feeds
744746
ExpiresByType application/atom+xml "access plus 1 hour"
747+
ExpiresByType application/rdf+xml "access plus 1 hour"
745748
ExpiresByType application/rss+xml "access plus 1 hour"
746749

747750
# Web fonts

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
},
66
"description": "Boilerplate configurations for the Apache HTTP Server",
77
"devDependencies": {
8-
"server-configs-test": "https://github.com/h5bp/server-configs-test/tarball/0.4.0"
8+
"server-configs-test": "https://github.com/h5bp/server-configs-test/tarball/0.5.0"
99
},
1010
"files": [
1111
"dist"

test/fixtures/.htaccess

+3
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ AddDefaultCharset utf-8
157157
.js \
158158
.json \
159159
.jsonld \
160+
.rdf \
160161
.rss \
161162
.topojson \
162163
.vtt \
@@ -332,6 +333,7 @@ AddDefaultCharset utf-8
332333
"application/json" \
333334
"application/ld+json" \
334335
"application/manifest+json" \
336+
"application/rdf+xml" \
335337
"application/rss+xml" \
336338
"application/schema+json" \
337339
"application/vnd.geo+json" \
@@ -427,6 +429,7 @@ FileETag None
427429

428430
# Web feeds
429431
ExpiresByType application/atom+xml "access plus 1 hour"
432+
ExpiresByType application/rdf+xml "access plus 1 hour"
430433
ExpiresByType application/rss+xml "access plus 1 hour"
431434

432435
# Web fonts

0 commit comments

Comments
 (0)