Hacker News new | past | comments | ask | show | jobs | submit login
“The protocol-relative URL is now an anti-pattern” (twitter.com/paul_irish)
8 points by rbcoffee on April 16, 2015 | hide | past | favorite | 5 comments



http://www.paulirish.com/2010/the-protocol-relative-url/ for those who care to read what this person is actually trying to say rather than the Twitter linkbait.


Using t.co {url shortening|redirection} in his tweet is an anti-pattern which i found ironic


Twitter does this with every URL, Paul Irish did not (as you can see by the fact the link text is the actual URL). It's so that there's more room in the Tweet for the rest of the message.


A very hack-ish way to fix this would be to just force HSTS on t.co and get on the HSTS preload lists in Chrome/Firefox/[..]. That way even though the link would be to t.co, the browser would never make the request to the http domain itself.


Why not link to the linked article instead of a tweet?




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: