To some extent, {T166605} and {T161284} both suggest that API responses should be cached in-memory. However, Page Previews (PP) uses APIs that can be – and are! – cached by browsers:
>>! In T166605#3317476, @phuedx wrote:
> … PP leverages the browser's cache rather than maintaining its own. We rely on [[ https://www.mediawiki.org/wiki/Compatibility#Browser_support_matrix | Grade A browsers ]] implementing HTTP caching correctly and their vendors making accessing them as efficient as possible in order to avoid incurring the incidental complexity of writing our own cache in JavaScript. I think this is reasonable.
This reads like an architecture decision and should be [documented as such](https://github.com/wikimedia/mediawiki-extensions-Popups/tree/master/doc/adr).
== AC
* An ADR is added to the PP codebase explaining this decision.