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 }
|
httpd::mod { 'alias': ensure => present }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ! defined(Httpd::Mod['headers']) {
|
||||||
|
httpd::mod { 'headers': ensure => present }
|
||||||
|
}
|
||||||
|
|
||||||
if ! defined(File['/srv/static']) {
|
if ! defined(File['/srv/static']) {
|
||||||
file { '/srv/static':
|
file { '/srv/static':
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
|
@ -32,6 +32,10 @@
|
|||||||
AllowOverride None
|
AllowOverride None
|
||||||
Satisfy Any
|
Satisfy Any
|
||||||
Require all granted
|
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
|
ErrorDocument 404 /badges/project-unofficial.svg
|
||||||
</Directory>
|
</Directory>
|
||||||
LogLevel warn
|
LogLevel warn
|
||||||
@ -77,6 +81,10 @@
|
|||||||
AllowOverride None
|
AllowOverride None
|
||||||
Satisfy Any
|
Satisfy Any
|
||||||
Require all granted
|
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
|
ErrorDocument 404 /badges/project-unofficial.svg
|
||||||
</Directory>
|
</Directory>
|
||||||
LogLevel warn
|
LogLevel warn
|
||||||
|
Loading…
Reference in New Issue
Block a user