mediawiki-extensions-Relate.../resources
Sam Smith 8b8db66dd1 Cache "morelike" requests for all users
In order to minimize loading time of RA for as many users as possible,
we need to maximize the number of users that can be served by our edge
caches.

Currently, if you're logged in, then the API uses your language by
default and so responses are always private, i.e. they shouldn't be
cached by a shared cache and can be cached by the browser.

By requesting that the response be in the language of the content, the
API ignores your language and responses become public, i.e. they can be
cached in a shared cache and can be cached by the browser.

Changes:
* Add the `uselang=content` parameter to the morelike request
* Add the `maxage=86400` parameter to the morelike request, allowing the
  browser to cache the response for 24 hours, which'll save the device
  even making the request

Bug: T126455
Change-Id: I6216a088d865f27f7cc3725fc311191da42a27ba
2016-09-05 11:33:12 +01:00
..
ext.relatedArticles.readMore Allow skins a mechanism to decide on placement of related pages 2016-08-23 11:51:33 -07:00
ext.relatedArticles.readMore.bootstrap Do not load related articles on diff comparision pages 2015-12-29 07:57:47 +05:00
ext.relatedArticles.readMore.gateway Cache "morelike" requests for all users 2016-09-05 11:33:12 +01:00