Merge "Set Cache-Control to no-cache for badges"

This commit is contained in:
Jenkins 2016-12-13 14:03:04 +00:00 committed by Gerrit Code Review
commit 12a99645a0
2 changed files with 12 additions and 0 deletions

View File

@ -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,

View File

@ -32,6 +32,10 @@
AllowOverride None
Satisfy Any
Require all granted
<IfModule mod_headers.c>
Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
Header set Pragma "no-cache"
</IfModule>
ErrorDocument 404 /badges/project-unofficial.svg
</Directory>
LogLevel warn
@ -77,6 +81,10 @@
AllowOverride None
Satisfy Any
Require all granted
<IfModule mod_headers.c>
Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
Header set Pragma "no-cache"
</IfModule>
ErrorDocument 404 /badges/project-unofficial.svg
</Directory>
LogLevel warn