Re:Long URLs Please
by darraghcurran on Tuesday December 23, 2008 @12:03PM
(#407772)
I thought so, and I do cache everything nicely in memcache and db.
Also it's hard or maybe even impossible? to reliably fetch arbitrary short url using javascript - exposing it as a simple json api makes this easy.
Yeah, it's only possible on the same hostname as the page you're on, which limits the usefulness and makes the server-side lookup necessary. The JSON solution will only work via a foreign host with a <script> tag as far as I know, which again is something of a trust issue.
Re:Long URLs Please
by darraghcurran on Tuesday December 23, 2008 @12:09PM
(#407779)
nice - I've been meaning to learn a bit of clojure. I hear your point on wanting to set up your own - and as you've shown it is easy to do.
[1] I did exactly that for http://tweetoftheyear.com/ in clojure: