diff --git a/modules/openstack_project/manifests/static.pp b/modules/openstack_project/manifests/static.pp index b7bfa575ae..64a39e9a8f 100644 --- a/modules/openstack_project/manifests/static.pp +++ b/modules/openstack_project/manifests/static.pp @@ -56,6 +56,10 @@ class openstack_project::static ( httpd::mod { 'alias': ensure => present } } + if ! defined(Httpd::Mod['headers']) { + httpd::mod { 'headers': ensure => present } + } + if ! defined(File['/srv/static']) { file { '/srv/static': ensure => directory, diff --git a/modules/openstack_project/templates/static-governance.vhost.erb b/modules/openstack_project/templates/static-governance.vhost.erb index dac7b11c04..9e75006b2f 100644 --- a/modules/openstack_project/templates/static-governance.vhost.erb +++ b/modules/openstack_project/templates/static-governance.vhost.erb @@ -32,6 +32,10 @@ AllowOverride None Satisfy Any Require all granted + + Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform" + Header set Pragma "no-cache" + ErrorDocument 404 /badges/project-unofficial.svg LogLevel warn @@ -77,6 +81,10 @@ AllowOverride None Satisfy Any Require all granted + + Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform" + Header set Pragma "no-cache" + ErrorDocument 404 /badges/project-unofficial.svg LogLevel warn