RCFilters: Live Update: download less data
authorStephane Bisson <sbisson@wikimedia.org>
Tue, 5 Sep 2017 15:45:55 +0000 (11:45 -0400)
committerStephane Bisson <sbisson@wikimedia.org>
Wed, 6 Sep 2017 15:34:13 +0000 (11:34 -0400)
commit0725cbe9a76fb11eed382aa1d4dfaabfabb5e9b6
tree288bcf9ac52b841305d47deff9b9a2d672343f2c
parent4fd44dcd26417265e61029d43d61c522505b96fd
RCFilters: Live Update: download less data

Make ChangesListSpecialPage respect action=render
to exclude the MW chrome (header, logo, sidebar, etc).

Introduce peek=1 in ChangesListSpecialPage to skip
the form and changes list rendering and return
200 when there is new data and 304 (not modified)
where there isn't.

Together, they reduce the page size from 49.9k to 275b on polling
and eliminate most HTTP 404 console errors.

Bug: T173613
Change-Id: I0aec878ae80e22814b196b26e944db8c78a5f91a
includes/specialpage/ChangesListSpecialPage.php
resources/src/mediawiki.rcfilters/mw.rcfilters.Controller.js