GWicke has uploaded a new change for review. https://gerrit.wikimedia.org/r/273974
Change subject: Add purged_cache_control config variable ...................................................................... Add purged_cache_control config variable https://github.com/wikimedia/restbase/pull/520 will use this variable to centrally configure cache headers for all purged entry points. Until that is deployed, this config variable is not referenced by any other code, so can be safely deployed. Change-Id: Ifea659001f45e0d6cdb8a5502ed0efefce933b38 --- M modules/restbase/templates/config.labs.yaml.erb M modules/restbase/templates/config.yaml.erb 2 files changed, 4 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/puppet refs/changes/74/273974/1 diff --git a/modules/restbase/templates/config.labs.yaml.erb b/modules/restbase/templates/config.labs.yaml.erb index 19ec7b8..9cc18b7 100644 --- a/modules/restbase/templates/config.labs.yaml.erb +++ b/modules/restbase/templates/config.labs.yaml.erb @@ -35,6 +35,8 @@ purge: host: <%= @purge_host %> port: <%= @purge_port %> + # Cache headers for purged end points. + purged_cache_control: s-maxage=3600, max-age=3600 # A different project template, sharing configuration options. wikimedia.org: &wikimedia.org diff --git a/modules/restbase/templates/config.yaml.erb b/modules/restbase/templates/config.yaml.erb index 2ae7d4d..09558a9 100644 --- a/modules/restbase/templates/config.yaml.erb +++ b/modules/restbase/templates/config.yaml.erb @@ -58,6 +58,8 @@ purge: host: <%= @purge_host %> port: <%= @purge_port %> + # Cache headers for purged end points. + purged_cache_control: s-maxage=3600, max-age=3600 # A different project template, sharing configuration options. wikimedia.org: &wikimedia.org -- To view, visit https://gerrit.wikimedia.org/r/273974 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ifea659001f45e0d6cdb8a5502ed0efefce933b38 Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: GWicke <gwi...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits