Re:Twitter is being investigated over data collection in its...
by kirillzubovsky on Sunday October 14, 2018 @10:47PM
(#18217083)
I remember reading a HN thread a few years ago where this was suggested as the cheapest way to create short links. Instead of running a server with routes on it, you just need to generate 1 static page with this meta tag per each link, then it's always there. Could it be that Twitter folks were simply trying to be efficient?
[ Parent
| on HN ]
Re:Twitter is being investigated over data collection in its...
by adanto6840 on Sunday October 14, 2018 @11:22PM
(#18217186)
Um, they have to run a lookup to find the 'value' for the given 'key' regardless...? I cannot think of any positive value for the user here -- it's non-standard & slower. 3XX redirects have been around a long time and basically every single client out there knows how to use them, and those that don't can look the status codes up to see how they should handle them if they want to.
AFAICT this is purely to allow for the 'pseudo injection' of the third-party JS, presumably for tracking purposes...
Only question I'd have is why they can't read the cookie server-side instead, but I'm guessing there are cookies on other domains that their JS is looking for? Haven't done web stuff in a few years so I'm behind on CORS-ish pros/cons/knowledge.
Re:Twitter is being investigated over data collection in its...
by icebraining on Monday October 15, 2018 @08:23AM
(#18219092)
I'm guessing there are cookies on other domains that their JS is looking for?
Nah, the browser doesn't let you do that. This SO answer suggests it's to pass the Referrer header so that the destination site knows the user came from Twitter: