mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 06:17:45 +00: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:
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
|
||||
|
||||
Reference in new issue
Block a user