aboutsummaryrefslogtreecommitdiff
path: root/themes/docsy/.s3deploy.yml
diff options
context:
space:
mode:
Diffstat (limited to 'themes/docsy/.s3deploy.yml')
-rw-r--r--themes/docsy/.s3deploy.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/themes/docsy/.s3deploy.yml b/themes/docsy/.s3deploy.yml
new file mode 100644
index 0000000..c8985e0
--- /dev/null
+++ b/themes/docsy/.s3deploy.yml
@@ -0,0 +1,14 @@
+routes:
+ - route: "^.+\\.(js|css|svg|ttf)$"
+ # cache static assets for 20 years
+ headers:
+ Cache-Control: "max-age=630720000, no-transform, public"
+ gzip: true
+ - route: "^.+\\.(png|jpg)$"
+ headers:
+ Cache-Control: "max-age=630720000, no-transform, public"
+ gzip: true
+ - route: "^.+\\.(html|xml|json)$"
+ gzip: true
+
+ \ No newline at end of file