mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RelatedArticles
synced 2024-11-25 08:46:44 +00:00
8b8db66dd1
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 |
||
---|---|---|
.. | ||
RelatedPagesGateway.js |