[Wikidata-bugs] [Maniphest] [Commented On] T177966: Add CORS-enabled, cacheable way to access contents of Data namespace

2017-10-12 Thread daniel
daniel added a comment. Huh, action="" should really only emit x-wiki for wikitext. The Content-Type header should come from ContentHandler, and should be application/json for JSON content. I wonder why this isn't the case here. Even with ctype=text/_javascript_, I get x-wiki. That'S bad.TASK

[Wikidata-bugs] [Maniphest] [Commented On] T177966: Add CORS-enabled, cacheable way to access contents of Data namespace

2017-10-12 Thread Lucas_Werkmeister_WMDE
Lucas_Werkmeister_WMDE added a comment. Oh, that’s a shame… and the text/x-wiki content type on action=""> is also not ideal, application/json would be better.TASK DETAILhttps://phabricator.wikimedia.org/T177966EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To:

[Wikidata-bugs] [Maniphest] [Commented On] T177966: Add CORS-enabled, cacheable way to access contents of Data namespace

2017-10-11 Thread Bawolff
Bawolff added a comment. 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. (This