urlshortener

Created: 2011-07-18 19:41
Updated: 2016-09-23 21:17

README.md

urlshortener

You'd think urlshortener is yet another flavor of URL shortener made with "the coolest framework".

urlshortener is in fact:

  • a sample application made with RESThub and RESThub-js (so the "cool framework" part was actually right)
  • an experiment on making a javascript application AJAX-crawlable

RESThub and RESThub-js

Both frameworks are hosted on github and their documentation is available on the official RESThub website.

Crawlers and AJAX crawling

Usually AJAX content/javascript based UIs and web crawlers don't mix. Google engineers dealt with this problem with a "contract" that any website can implement - basically a way of telling web spiders how to crawl your website.

This project is using a Filter with an embedded HTMLUnit that generates HTML snapshots of your website.

Doing it "the right way™"

This technique fits pretty well for legacy applications. I don't think it's the best solution for a brand new application, though...

Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more