| Lucas_Werkmeister_WMDE updated the task description. (Show Details) |
CHANGES TO TASK DESCRIPTION
...
There is a workaround to this problem: use the Action API (which supports CORS), with `action="" `prop=revisions`, and `rvprop=content` (and selecting the pages with `titles`, `pageids`, or some generator, etc.), and extract the page content from `response.query.pages.{pageId}.revisions[0]['*']`. ~~However, API responses are never cached, resulting in more work for the API servers as well as lots of unnecessary data transfer.~~ Correction: the response is cached according to the `maxage` specified in the request; however, I’m not sure if this works if pages are edited or purged (as far as I can tell, the browser doesn’t validate its cached data), so it can be hard to choose the right `maxage`. (ItThis workaround also requires that you parse and transform the canonical URI, which is ugly.)...
TASK DETAIL
EMAIL PREFERENCES
To: Lucas_Werkmeister_WMDE
Cc: daniel, Aklapper, Jdforrester-WMF, Smalyshev, Lucas_Werkmeister_WMDE, Dfil7, Icedevil, GoranSMilovanovic, 45Jayjay1969, QZanden, Wikidata-bugs, aude, Mbch331
Cc: daniel, Aklapper, Jdforrester-WMF, Smalyshev, Lucas_Werkmeister_WMDE, Dfil7, Icedevil, GoranSMilovanovic, 45Jayjay1969, QZanden, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
