Last modified: 2014-10-16 20:08:37 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T58627, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 56627 - Zero makes zeroconfig API requests on every pageview
Zero makes zeroconfig API requests on every pageview
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
ZeroPortal (Other open bugs)
master
All All
: Unprioritized major (vote)
: ---
Assigned To: Nobody - You can work on this!
: performance
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-05 18:35 UTC by Max Semenik
Modified: 2014-10-16 20:08 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Max Semenik 2013-11-05 18:35:52 UTC
Example with X-CS: 250-99: 
https://ru.m.wikipedia.org/w/api.php?format=json&action=zeroconfig&type=config

returns {"enabled":true,"id":"250-99","showImages":true,"whitelistedLangs":["ru","en"],"enableHttps":false,"sites":["m.wikipedia","zero.wikipedia"]}

This result is cached for just 10 minutes, while the zero config isn't changed anywhere as frequently. The total number of requests doesn't look very scary - 447k requests last month, however it will be growing steadily.

I wonder if making it a ResourceLoader module would make the situation any better though - we'll need some way to vary the modules by X-CS and that would require either the URLs to be unique or us to vary Zero load.php requests by X-CS (and mess with bits to add that header) - neither sounds particulary attractive.
Comment 1 Yuri Astrakhan 2014-07-07 14:37:08 UTC
I think this was fixed a while ago, and besides, zero will soon (hopefully) switch to unified design, which means that every zero request will pull Special:ZeroRatedMobileAccess to insert banned & config in one go.

https://www.mediawiki.org/wiki/Requests_for_comment/Unfragmented_ZERO_design
Comment 2 Andre Klapper 2014-10-16 12:54:33 UTC
(In reply to Yuri Astrakhan from comment #1)
> I think this was fixed a while ago, and besides, zero will soon (hopefully)
> switch to unified design, which means that every zero request will pull
> Special:ZeroRatedMobileAccess to insert banned & config in one go.
> 
> https://www.mediawiki.org/wiki/Requests_for_comment/Unfragmented_ZERO_design

Yuri: So does keeping this ticket still open make sense?

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links