Merge "Set Cache-Control to no-cache for badges"
This commit is contained in:
commit
12a99645a0
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user