From cf7b267eb38d559cfa86eb45d866863735366879 Mon Sep 17 00:00:00 2001 From: Ewoud Kohl van Wijngaarden Date: Wed, 7 Dec 2022 22:50:28 +0100 Subject: [PATCH] Refs #33956 - Ensure mod_expires is loaded In case only minimal Apache modules are loaded then mod_expires may not be present. The result is that assets are sent without headers that allow browsers to cache it. --- manifests/config/apache.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manifests/config/apache.pp b/manifests/config/apache.pp index 9981bec85..3aab49b88 100644 --- a/manifests/config/apache.pp +++ b/manifests/config/apache.pp @@ -154,8 +154,9 @@ if $suburi { $custom_fragment = undef } else { - # mod_env is required by configuration in _assets.conf.erb + # mod_env and mod_expires are required by configuration in _assets.conf.erb include apache::mod::env + include apache::mod::expires $custom_fragment = file('foreman/_assets.conf.erb') }