Add link to golang regex syntax, change modified date

This commit is contained in:
Thomas Jensen 2021-05-03 13:31:53 +02:00 committed by Bjørn Erik Pedersen
parent 21b0c74594
commit 5727668891

View File

@ -4,7 +4,7 @@ linktitle: Hugo Deploy
description: You can upload your site to GCS, S3, or Azure using the Hugo CLI. description: You can upload your site to GCS, S3, or Azure using the Hugo CLI.
date: 2019-05-30 date: 2019-05-30
publishdate: 2019-05-30 publishdate: 2019-05-30
lastmod: 2019-05-30 lastmod: 2021-05-03
categories: [hosting and deployment] categories: [hosting and deployment]
keywords: [s3,gcs,azure,hosting,deployment] keywords: [s3,gcs,azure,hosting,deployment]
authors: [Robert van Gent] authors: [Robert van Gent]
@ -95,10 +95,13 @@ cloudFrontDistributionID = <ID>
# [[deployment.matchers]] configure behavior for files that match the Pattern. # [[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: # Samples:
[[deployment.matchers]] [[deployment.matchers]]
# Cache static assets for 1 year. # Cache static assets for 1 year.
pattern = "^.+\\.(js|css|svg|ttf)$" pattern = "^.+\\.(js|css|svg|ttf)$"
cacheControl = "max-age=31536000, no-transform, public" cacheControl = "max-age=31536000, no-transform, public"
gzip = true gzip = true
@ -108,9 +111,8 @@ 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]] [[deployment.matchers]]
# Set custom content type for /sitemap.xml
pattern = "^sitemap\\.xml$" pattern = "^sitemap\\.xml$"
contentType = "application/xml" contentType = "application/xml"
gzip = true gzip = true