https://bugzilla.wikimedia.org/show_bug.cgi?id=56627
Web browser: ---
Bug ID: 56627
Summary: Zero makes zeroconfig API requests on every pageview
Product: MediaWiki extensions
Version: master
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: Unprioritized
Component: ZeroRatedMobileAccess
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
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.
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l