mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-19 14:34:49 -04:00
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:
parent
de7d96fa28
commit
21b0c74594
@ -108,6 +108,13 @@ pattern = "^.+\\.(png|jpg)$"
|
|||||||
cacheControl = "max-age=31536000, no-transform, public"
|
cacheControl = "max-age=31536000, no-transform, public"
|
||||||
gzip = false
|
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]]
|
[[deployment.matchers]]
|
||||||
pattern = "^.+\\.(html|xml|json)$"
|
pattern = "^.+\\.(html|xml|json)$"
|
||||||
gzip = true
|
gzip = true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user