-
Website
http://blog.clintecker.com/ -
Original page
http://blog.clintecker.com/post/95288444 -
Subscribe
All Comments -
Community
-
Top Commenters
-
Rian
2 comments · 1 points
-
Rob Hudson
2 comments · 3 points
-
Marcus Mattsson
2 comments · 8 points
-
Adam Turetzky
12 comments · 2 points
-
jasondavies
3 comments · 1 points
-
-
Popular Threads
-
My Decade in Photos: 2000-2001
23 hours ago · 6 comments
-
Mediaite: Q: Which Is The Top Site of 2009? A: Ars, duh. — Officially Lucky ❡ a blog by Clint Ecker
1 day ago · 1 comment
-
CoffeeScript is a little language that compiles into JavaScript — Officially Lucky ❡ a blog by Clint Ecker
3 days ago · 1 comment
-
My Decade in Photos: 2000-2001
See rev=canonical considered harmful (complete with sensible solution)
Sam
This post is not about that however. Rather, an HTTP header for clients to pull with a HEAD request.
Furthermore:
"[The rel] attribute describes the relationship from the current document to the anchor specified by the href attribute. The value of this attribute is a space-separated list of link types."
So what you're saying is that the "alternate" and "short_url" link happens to be the same, while specifying that link. Clearly this is not what you're intending to say so you should first of all drop "alternate" - it's an alternative link to (approximately) the same content, not a link to alternative content (e.g. a PDF or text version). I'm not sure what kinds of breakage this will cause, but it's quite possible that it could interfere with search, newsreaders, etc.
Then there's the whole debate about whether we should be using short_url given the confusion over underscore vs dash vs space, and then uri vs url. The best solution we've managed to come up with so far is "shortlink" which is both obvious and impossible to get wrong.
Sam
I've updated the post to recommend Link, an existing header. See post for syntax. I think X-Rev-Canonical is easier to implement and parse, but I'm not trying to reinvent the wheel when it's unnecessary.
Chris
Sam