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

折月煮酒 提交于 2019-12-31 08:41:20

问题


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.


回答1:


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




回答2:


Tinyurl says in the first paragraph on their main page that their urls "never expire": tinyurl.com. As @Peter J points out, that means it's only good as long as the company is in business and offers the same terms, but it's something.

This Bitly help page also states that their urls won't expire.




回答3:


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.



来源:https://stackoverflow.com/questions/736792/is-there-an-expiry-on-bit-ly-or-tinyurl-urls

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!