Epeus' epigone

Edifying exquisite equine entrapments

Tuesday, 8 July 2008

Shortening URLs, or getting inbetween?

With the rise of short message systems like Twitter, there is a growth in URL shorteners (as each one's namespace gets full, others get shorter). Today bit.ly launched to big fanfare in the blogosphere.

I took a closer look. What I noticed is that the older generation of these - tinyurl.com and xrl.us use a 301 Moved Permanently redirect, whereas bit.ly and is.gd use a 302 Found redirect, which means 'don't cache the redirected URL, keep checking the original'.

In other words, these services are saying in their HTTP responses that they may change what the short URLs point to in future, putting browsers, indexers and caches on notice that this may happen.

I also noticed that bit.ly, like tinyurl.com, allows you to pick a custom label from their namespace, but if you do it returns two 302 redirects in sequence (once to a more cryptic bit.ly url, then to the external one you chose). I pointed bit.ly/k at this blog, so you can check it yourself with curl:

$ curl --head http://bit.ly/k
HTTP/1.1 302 Found
Location: http://bit.ly/fwNKA

$ curl --head http://bit.ly/fwNKA
HTTP/1.1 302 Found
Location: http://epeus.blogspot.com

Apart from the extra delay this introduces, this is also telling your browser and web crawlers not to cache this, as they may change it in future. Compare tinyurl.com:

$ curl --head http://tinyurl.com/kevinm
HTTP/1.1 301 Moved Permanently
Location: http://epeus.blogspot.com

Google's advice for webmasters is to use 301 for redirects, as this signals the preferred URL.

Posted by Kevin Marks at 23:44
Labels: bit.ly, http, tinyurl, URLs

11 comments:

Gary said...

hey, there, k, i'm your neighbor, l. (not much there at the moment). it's been a while, hope you're doing well, gary.

July 09, 2008 11:09 AM
Jason said...

That's not the only bit of the HTTP protocol they got wrong; bit.ly ignores any and all cache controls that page authors put on their pages:

http://q.queso.com/archives/002296

Sigh.

July 09, 2008 11:16 AM
lachstock said...

Okay, maybe not. I've just read my curl response and realised is.gd uses 302 Found as well.

I obviously need more coffee.

July 09, 2008 3:48 PM
lachstock said...

And somehow my other comment got lost. Disregard.

July 09, 2008 4:17 PM
Dick said...

Hey Kevin, I think the service wants to see the traffic each time the user clicks on it (business reason), so they use a 302.

July 16, 2008 5:14 PM
Jagadeesh M said...

yes all for tracking hits and avoid direct ranking :)

Anyway nice post, you can also add more like SEO Guide

Best,
Jag
Linkedin also follow me

July 28, 2008 4:10 AM
Watman said...

New short url service
http://fff.to/ .

Short and handy redirection URLs
Referral links hiding
Full statistics of your redirect link using
Traffic distribution system
Easy link management

October 12, 2008 8:32 AM
wow power leveling said...

However mean your gold in wow life is,buy wow gold meet it and live it ;wow gold cheap do not shun it and call it hard names.It is not so bad as you are.It looks poorest when you are richest.The fault-finder will find faults in paradise.wow gold kaufen love your life,poor as it is.maple meso You may perhaps have some pleasant,thrilling,maplestory power leveling glorious hourss,even in a poor-house.The setting sun is reflected from the windows of the alms-house as brightly as from the rich man's abode;the snow melts before its door as early in the spring.sell wow gold I do not see but a quiet mind may live as contentedly there,cheap mesos and have as cheering thoughts,as in a palace.The town's poor seem to me often to live the most independent lives of any.May be they are simply great enough to billig wow gold receive without misgiving.Most think that they are above being supported by the town;powerlevel but it often happens that buy maplestory mesos they are not above supporting themselves by dishonest means.which should be more disreputable.Cultivate poverty like a garden herb,like sage.Do not trouble wow powerleveln yourself much to get new things,maple mesos whether clothes or friends

January 30, 2009 9:56 PM
wow gold said...

The first wow gold thing for wow gold you to consider buy wow gold about the buy wow gold Druid class cheap wow gold is this: Is the cheap wow gold Druid class wow power leveling right for wow power leveling you? The power leveling Druid class power leveling is kind of wow gold unique in that buy wow gold it's not for cheap wow gold everyone. While world of warcraft gold master of none.

February 15, 2009 11:52 PM
ahmeeeed said...

http://ebdaa.yoo7.com/category-c5/

March 12, 2009 3:21 PM
ahmeeeed said...

http://ebdaa.yoo7.com

March 13, 2009 5:00 AM

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

This is my personal blog. Any views you read here are mine, and not my employers.

Subscribe to my Events

Atom Feed

 

Support the Open Rights Group
Technorati search

mediAgora
encourage copying, expect payment

Kevin Marks
My Shared Stuff

People's thoughts I read:

Daily

Rosie
San Jose Young People's Theatre
Dave Weinberger
Doc Searls
Gonzo Engaged
AKMA
Tomalak's Realm
Cory & friends
Denise Howell
Dave Winer
Charles Wiltgen
Shelley Powers
Jonathon Delacour
Dorothea Salo
James Lileks
Megan McArdle
Tim Oren
Suw Charman
Halley Suitt

Weekly

Andrew Marks
Blogsisters
Arts & Letters Daily
Bricklin, Frankston & Reed
Marek
Steve Yost
Jeneane Sessum
Brian Micklethwait et al
Donna Wentworth - CopyFight
Chris Locke
Arnold Kling
Jonathan Peterson
Dana Blankenhorn
Tom Matrullo
Gary Turner
Marc Canter
St Luke's Chapel (Michael Penfield)

Sporadically

As the Apple Turns (back at last)
Small Pieces
Stuart Cheshire
RageBoy
Nonzero
Neil Gaiman
Thomas Vincent
Brad deLong
Andrew Odlyzko
Frank Paynter
ProSUA

No to Mickey Mouse Computers

powered by blogger

Blog Archive

  • ▼ 2009 (11)
    • ▼ June (2)
      • Celebrities - social objects or fake friends?
      • Farewell to Google
    • ► May (2)
      • Faces call the trust code in our brains
      • Press Release Use Causes "Serious" Brain Damage, M...
    • ► April (1)
      • WSJ dubbed internet parasite by WSJ editor
    • ► February (2)
      • A load of Thunderer
      • OpenSocial WeekendApps
    • ► January (4)
      • Mark Cuban's Big Lie
      • Notes on Charlene Li's Future of Social Networks S...
      • Hold your breath while Googling to save the planet...
      • MacWorld wishlist
  • ► 2008 (29)
    • ► December (2)
      • My twittered notes on the Leweb Social panel
      • Cycling to new layers of freedom
    • ► November (3)
      • OpenSocial’s birthday today
      • Missing the point of OpenID
      • Blogging's not dead, it's becoming like air
    • ► August (1)
      • Social Disease, or making magic?
    • ► July (3)
      • Open Source and Social Cloud Computing
      • Here Comes Everybody - Tummlers, Geishas, Animateu...
      • Shortening URLs, or getting inbetween?
    • ► June (3)
      • Google as a restaurant? Watch Gordon Ramsay
      • I'm with the stupid network
      • How not to be viral
    • ► May (5)
      • Miasma theory - wrong in the 1840s, wrong now
      • An API is a bespoke suit, a standard is a t-shirt
      • Talking about OpenSocial all over the place
      • Portable Apps, not data?
      • Mixing degrees of publicness in HTTP
    • ► April (2)
      • Digital publics, Conversations and Twitter
      • Comcast's Bialystock and Bloom Business Model?
    • ► February (3)
      • Be Organic, not Viral
      • The Social Cloud
      • LIFT Conference starts
    • ► January (7)
      • Sheet music redux
      • Fear of the new - the Internet, Tea, and MapReduc...
      • OpenSocial Hackathon next week in SF
      • Identity Theft is not a crime
      • memes, dreams and themes
      • URLs are people too
      • Tardy blogging
  • ► 2007 (45)
    • ► November (3)
      • Do not fold, bend, mutilate or Kindle
      • Open Rights Group - Happy ORG day
      • OpenSocial and Social Software history
    • ► October (4)
      • All bloggers are above average
      • AtomPub is an RFC
      • Bladerunner and Middlesbrough
      • Storytelling and performance
    • ► September (4)
      • iPod progress
      • Bubbles and Facebook
      • Journalists slumming online
    • ► August (10)
    • ► July (3)
    • ► June (8)
    • ► April (2)
    • ► March (6)
    • ► February (3)
    • ► January (2)
  • ► 2006 (119)
    • ► December (13)
    • ► November (8)
    • ► October (16)
    • ► September (10)
    • ► August (3)
    • ► July (6)
    • ► June (24)
    • ► May (3)
    • ► April (10)
    • ► March (7)
    • ► February (8)
    • ► January (11)
  • ► 2005 (101)
    • ► December (10)
    • ► November (13)
    • ► October (9)
    • ► September (8)
    • ► August (7)
    • ► July (7)
    • ► June (8)
    • ► May (12)
    • ► April (7)
    • ► March (6)
    • ► February (1)
    • ► January (13)
  • ► 2004 (53)
    • ► December (8)
    • ► November (5)
    • ► October (6)
    • ► September (7)
    • ► July (5)
    • ► June (3)
    • ► May (2)
    • ► March (3)
    • ► February (7)
    • ► January (7)
  • ► 2003 (196)
    • ► December (12)
    • ► November (14)
    • ► October (21)
    • ► September (23)
    • ► August (19)
    • ► July (11)
    • ► June (14)
    • ► May (9)
    • ► April (22)
    • ► March (20)
    • ► February (16)
    • ► January (15)
  • ► 2002 (225)
    • ► December (15)
    • ► November (21)
    • ► October (22)
    • ► September (12)
    • ► August (11)
    • ► July (28)
    • ► June (19)
    • ► May (29)
    • ► April (18)
    • ► March (19)
    • ► February (17)
    • ► January (14)
  • ► 2001 (13)
    • ► December (2)
    • ► November (11)

About Me

My Photo
Kevin Marks
Kevin Marks works at Google. From September 2003 to January 2007 he was Principal Engineer at Technorati responsible for the spiders that make sense of the web and track millions of blogs daily. He has been inventing and innovating for over 17 years in emerging technologies where people, media and computers meet. Before joining Technorati, Kevin spent 5 years in the Quicktime Engineering team at Apple, building video capture and live streaming into OS X. He was a founder of The Multimedia Corporation in the UK, where he served as Production Manager and Executive Producer, shipping million-selling products and winning International awards. He has a Masters degree in Physics from Cambridge University and is a BBC-qualified Video Engineer.One of the driving forces behind microformats.org he regularly speaks at Conferences and Symposia on emergent net technologies and their cultural impact.
View my complete profile