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 2021-04-28 19:07:01 +02:00 committed by Bjørn Erik Pedersen
parent de7d96fa28
commit 21b0c74594

View File

@ -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