mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-17 00:54:54 -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"
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user