Browser should clear cache for API responses
authorMark A. Hershberger <mah@everybody.org>
Tue, 3 Mar 2015 22:17:58 +0000 (17:17 -0500)
committerBrad Jorsch <bjorsch@wikimedia.org>
Thu, 5 Mar 2015 15:59:59 +0000 (10:59 -0500)
commit497aed39483f0853280bbb7e1ca50f8d4d3e28e0
treee7d1cf42602ecf3223eaf5c6cfa4d8ea886b370f
parent809e1c4c9f97695a658911cacfe594a77f87e412
Browser should clear cache for API responses

By default we send "private, must-revalidate, max-age=0" for regular
logged-in wiki viewing.  This changes API responses to match.

Later, someone should update the Cache-Control header generation so
that it works the same for API responses as it does for OutputPage.
This is becoming more important since we're using the API instead of
OutputPage for editing with VisualEditor.

Bug: T74480
Change-Id: Ib309df8568de2c7137b6d13b9ca4004150a772dd
includes/api/ApiMain.php