From 57ad18f5ccb73f3285674f8b971036724d4dc73f Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Sun, 8 Dec 2019 19:51:49 +0000 Subject: [PATCH] switch2osm: add expiry matching github pages --- cookbooks/switch2osm/recipes/default.rb | 3 +++ cookbooks/switch2osm/templates/default/apache.erb | 3 +++ 2 files changed, 6 insertions(+) diff --git a/cookbooks/switch2osm/recipes/default.rb b/cookbooks/switch2osm/recipes/default.rb index 8ddaf5101..3e0c51f9c 100644 --- a/cookbooks/switch2osm/recipes/default.rb +++ b/cookbooks/switch2osm/recipes/default.rb @@ -25,6 +25,9 @@ package %w[ zlib1g-dev ] +apache_module "expires" +apache_module "rewrite" + gem_package "bundler" do version "1.17.3" end diff --git a/cookbooks/switch2osm/templates/default/apache.erb b/cookbooks/switch2osm/templates/default/apache.erb index 7d73ca6e4..e355c814c 100644 --- a/cookbooks/switch2osm/templates/default/apache.erb +++ b/cookbooks/switch2osm/templates/default/apache.erb @@ -17,6 +17,9 @@ DocumentRoot <%= @directory %> ErrorDocument 404 /404.html + + ExpiresActive On + ExpiresDefault "access plus 10 minutes" -- 2.39.5