]> Lady’s Gitweb - x_status_git/blobdiff - Caddyfile
Add Cache-Control header to sample Caddyfile
[x_status_git] / Caddyfile
index a430aae06c9d8691e330c11e48c60b98528645ba..95fed0ebb752326a97fed18094d2376987ea60b7 100644 (file)
--- a/Caddyfile
+++ b/Caddyfile
@@ -36,6 +36,7 @@ status.site.example {
        handle @iri {
                handle @bare {
                        rewrite * /.lookup.xhtml
+                       header Cache-Control max-age=0
                }
 
                handle @slash {
@@ -152,7 +153,10 @@ status.site.example {
                }
        }
 
-       header Access-Control-Allow-Origin "*"
+       header {
+               Access-Control-Allow-Origin "*"
+               ?Cache-Control max-age=3600
+       }
 
        file_server {
                index index.xml index.xhtml index.html index.rdf index.txt
This page took 0.021616 seconds and 4 git commands to generate.