GWicke has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/345877 )

Change subject: WIP: Add cache-control option that allows for short term client 
caching
......................................................................

WIP: Add cache-control option that allows for short term client caching

Some end points can allow for some short term client side caching, which
helps to reduce repeat requests during active use.

Bug: T161284
Change-Id: I2287249ac6a8c22fe904b62ea9f1b591db7497f5
---
M modules/restbase/templates/config.labs.yaml.erb
M modules/restbase/templates/config.yaml.erb
2 files changed, 6 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/77/345877/1

diff --git a/modules/restbase/templates/config.labs.yaml.erb 
b/modules/restbase/templates/config.labs.yaml.erb
index 065e2c3..a12eccb 100644
--- a/modules/restbase/templates/config.labs.yaml.erb
+++ b/modules/restbase/templates/config.labs.yaml.erb
@@ -57,6 +57,9 @@
           cache_control: s-maxage=86400, max-age=86400
         # Cache headers for purged end points.
         purged_cache_control: s-maxage=1209600, max-age=0, must-revalidate
+        # Cache headers for purged end points, which allows for some short
+        # term client side caching.
+        purged_some_client_cache_control: s-maxage=1209600, max-age=120
         pdf:
           cache_control: s-maxage=600, max-age=600
           uri: <%= @pdfrender_uri %>
diff --git a/modules/restbase/templates/config.yaml.erb 
b/modules/restbase/templates/config.yaml.erb
index 2c81af1..f74803e 100644
--- a/modules/restbase/templates/config.yaml.erb
+++ b/modules/restbase/templates/config.yaml.erb
@@ -79,6 +79,9 @@
           cache_control: s-maxage=86400, max-age=3600
         # Cache headers for purged end points.
         purged_cache_control: s-maxage=1209600, max-age=0, must-revalidate
+        # Cache headers for purged end points, which allows for some short
+        # term client side caching.
+        purged_some_client_cache_control: s-maxage=1209600, max-age=120
         skip_updates: <%= @skip_updates %>
         pdf:
           cache_control: s-maxage=600, max-age=600

-- 
To view, visit https://gerrit.wikimedia.org/r/345877
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2287249ac6a8c22fe904b62ea9f1b591db7497f5
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

Reply via email to