O RLY?

YA RLY! NO WAI!

O HAI! This is some of the random ramblings of Jiayong Ou, a generic geek and web developer. Most of his ramblings are on twitter as @jiayongou. More on his other online activities are on his other page. His old blog is still available if anybody cares.

Tuesday, 20th October 2009
It is tagged with
Monday, 17th August 2009

srs.li now supports rel=”shorturl” and friends

Finally got around to implement support for rel="shorturl" and friends in srs.li, my own URL shortener (yes, I know I’m late :-).

At the moment it supports:

  • `rel=”(shorturl|shorturi|shortlink)”
  • `rev=”canonical”

It looks for those stuff in

  • HTTP Location header (attempts to make a HEAD first and goes to GET if it doesn’t found something)
  • <link> tags in the body

Code is available at http://github.com/jou/yaurls/tree/master and is under a MIT license.

It is tagged with