summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--Caddyfile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Caddyfile b/Caddyfile
index f69b86c..576a1d0 100644
--- a/Caddyfile
+++ b/Caddyfile
@@ -8,6 +8,11 @@
 	metrics
 }
 
+http://www.alanpearce.eu {
+	header Cache-Control max-age=31536000
+	redir https://alanpearce.eu{uri}
+}
+
 http://alanpearce.eu {
 	root * {$SITE_ROOT}
 	file_server {