Page MenuHomePhabricator

RESTBase: Consider supporting no-cache requests for /page/html/{title} end point
Closed, ResolvedPublic

Description

Requests to /page/html/{title} fetch the latest revision known to RESTBase. This is normally up to date, but it would be nice to be able to ask for a 'really up to date' version.

We use Cache-Control: no-cache headers to refresh the rendering of individual revisions already (at /page/html/{title}/{revision}). We could consider adding similar support at /page/html/{title}, which

  1. refreshes the revision metadata (similar to a no-cache request for revisions), and
  2. re-renders the page content, or otherwise makes sure that the render is up to date.

For 2) we might be able to leverage information returned from the revision metadata request, in particular [page_touched](https://www.mediawiki.org/wiki/Manual:Page_table#page_touched).

Event Timeline

GWicke raised the priority of this task from to Medium.
GWicke updated the task description. (Show Details)
GWicke added a project: RESTBase.
GWicke subscribed.
Pchelolo reopened this task as Open.

We should re-think this as part of the T106455 design.

PR for this has been merged and deployed, so closing the task.