views:

743

answers:

2

Is there an expiry on bit.ly or tinyurl shortened URLs?

I'm asking because I'm thinking of persisting these shortened urls into the db for a client's twitter service.

UPDATE: if you keep sending bit.ly the same URL, it'll return the same shorten URL!, this is great, because it means I don't need to persist the shorten URLs in my database, and just cache bit.ly/shorten calls instead.

I was really hoping to avoid persisting shortened URLs in my db.

+5  A: 

No. They'll remain valid as long as the service remains up.

Daniel Jennings
+1  A: 

Daniel explained his answer correctly, but I believe the answer should be "yes". They will expire when the service decides to insert ads before redirecting you, or they begin charging for the service.

There is no guarantee whatsoever that your URL will be valid tomorrow.

Peter J