summaryrefslogtreecommitdiffstats
path: root/content/en/hosting-and-deployment/hugo-deploy.md
diff options
context:
space:
mode:
Diffstat (limited to 'content/en/hosting-and-deployment/hugo-deploy.md')
-rw-r--r--content/en/hosting-and-deployment/hugo-deploy.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/content/en/hosting-and-deployment/hugo-deploy.md b/content/en/hosting-and-deployment/hugo-deploy.md
index bce606d1f..81436b7f3 100644
--- a/content/en/hosting-and-deployment/hugo-deploy.md
+++ b/content/en/hosting-and-deployment/hugo-deploy.md
@@ -90,14 +90,14 @@ cloudFrontDistributionID = <ID>
# Samples:
[[deployment.matchers]]
-# Cache static assets for 20 years.
+# Cache static assets for 1 year.
pattern = "^.+\\.(js|css|svg|ttf)$"
-cacheControl = "max-age=630720000, no-transform, public"
+cacheControl = "max-age=31536000, no-transform, public"
gzip = true
[[deployment.matchers]]
pattern = "^.+\\.(png|jpg)$"
-cacheControl = "max-age=630720000, no-transform, public"
+cacheControl = "max-age=31536000, no-transform, public"
gzip = false
[[deployment.matchers]]