Set Cache-Control to no-cache for badges
Some services might cache badges for a very long time, which may no reflect the latest changes in the governance repo. Set Cache-Control to no-cache to instruct these services to not cache badges ever. Change-Id: I535107c49d5c89b9e09b440f7aac139de213f796
This commit is contained in:
parent
7a21280e51
commit
84ebdebe00
@ -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
|
||||
@ -73,6 +77,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