diff options
author | Thomas Jensen <thomas@uctrl.net> | 2021-05-03 14:31:53 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-05-04 10:27:13 +0300 |
commit | 572766889131e8cc02d004983953b2f7c29ebc53 (patch) | |
tree | 38c0af1a9a9d60ff0ebf0b83fac3162698821c20 | |
parent | 21b0c745946f0e10435b3ae7721cb84310e813f1 (diff) |
Add link to golang regex syntax, change modified date
-rw-r--r-- | content/en/hosting-and-deployment/hugo-deploy.md | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/content/en/hosting-and-deployment/hugo-deploy.md b/content/en/hosting-and-deployment/hugo-deploy.md index f5f206481..da7f77c61 100644 --- a/content/en/hosting-and-deployment/hugo-deploy.md +++ b/content/en/hosting-and-deployment/hugo-deploy.md @@ -4,7 +4,7 @@ linktitle: Hugo Deploy description: You can upload your site to GCS, S3, or Azure using the Hugo CLI. date: 2019-05-30 publishdate: 2019-05-30 -lastmod: 2019-05-30 +lastmod: 2021-05-03 categories: [hosting and deployment] keywords: [s3,gcs,azure,hosting,deployment] authors: [Robert van Gent] @@ -95,10 +95,13 @@ cloudFrontDistributionID = <ID> # [[deployment.matchers]] configure behavior for files that match the Pattern. +# See https://golang.org/pkg/regexp/syntax/ for pattern syntax. +# Pattern searching is stopped on first match. + # Samples: [[deployment.matchers]] -# Cache static assets for 1 year. +# Cache static assets for 1 year. pattern = "^.+\\.(js|css|svg|ttf)$" cacheControl = "max-age=31536000, no-transform, public" gzip = true @@ -108,9 +111,8 @@ 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]] +# Set custom content type for /sitemap.xml pattern = "^sitemap\\.xml$" contentType = "application/xml" gzip = true |