Skip to content

Commit

Permalink
Refs #33956 - Ensure mod_expires is loaded
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ekohl committed Dec 7, 2022
1 parent a57aa4b commit cf7b267
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manifests/config/apache.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}

Expand Down

0 comments on commit cf7b267

Please sign in to comment.