Add info about contentType config

Add `contentType`to deploy config example, and a note that matching stops on first match.
This commit is contained in:
Thomas Jensen authored and Bjørn Erik Pedersen committed 2021-05-04 09:27:13 +02:00
1 parent de7d96fa28
commit 21b0c74594
1 file changed
+7
@@ -108,6 +108,13 @@ pattern = "^.+\\.(png|jpg)$"
cacheControl = "max-age=31536000, no-transform, public"
gzip = false
# Set custom content type for /sitemap.xml
# Will not hit the next matcher, as searching is stopped on first match
[[deployment.matchers]]
pattern = "^sitemap\\.xml$"
contentType = "application/xml"
gzip = true
[[deployment.matchers]]
pattern = "^.+\\.(html|xml|json)$"
gzip = true