daniel edited the task description. (Show Details) |
EDIT DETAILS
``````
NOTE: we can only rewrite (or proxy) from the /entity/Q... path if we are //sure// that the target URL sill still trigger a redirect (or error). We should //never// return content from the /entity/ path, to avoid cache pollution and confusion about subject URI and document URL. So, /entity/Q1234.ttl must //not// be rewritten but //redirected// to /wiki/Special:EntityData/Q1234.ttl, since that will return data. To ensure this, a magic parameter could be passed, something like force-redirect=true, which would force Special:EntityData to send a redirect to the canonical URL instead of serving content directly.
...
If wikidata.org/entity/Q12345 would use an internal rewrite (or proxy) to request wikidata.org/wiki/Special:EntityData/Q12345, only one 303 redirect would be sent to the client. That would better match what is proposed in <http://www.w3.org/TR/cooluris/#r303gendocument>....
HTTP/1.1 200 OK``````
NOTE: we can only rewrite (or proxy) from the /entity/Q... path if we are //sure// that the target URL sill still trigger a redirect (or error). We should //never// return content from the /entity/ path, to avoid cache pollution and confusion about subject URI and document URL. So, /entity/Q1234.ttl must //not// be rewritten but //redirected// to /wiki/Special:EntityData/Q1234.ttl, since that will return data. To ensure this, a magic parameter could be passed, something like force-redirect=true, which would force Special:EntityData to send a redirect to the canonical URL instead of serving content directly.
TASK DETAIL
EMAIL PREFERENCES
To: daniel
Cc: hoo, elf-pavlik, JanZerebecki, Aklapper, StudiesWorld, daniel, D3r1ck01, Izno, Luke081515, Wikidata-bugs, aude, fbstj, Mbch331
Cc: hoo, elf-pavlik, JanZerebecki, Aklapper, StudiesWorld, daniel, D3r1ck01, Izno, Luke081515, Wikidata-bugs, aude, fbstj, Mbch331
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs