Teaching an old dog new tricks...
Google translates any hash-bang URLs (
#!) it finds into an actual GET parameter
For a complete reference on Google's AJAX crawling please see getting started.
Install with npm:
npm install doogle
Doogle is very simple to get up and running with. First of all you need to let Doogle know which base URL we're going to be using.
var doogle = '';
Any time you specify a path to retrieve, it will be appended to the base URL (
You then need to decide where to store your HTML snapshots, and for how long they're valid for in hours.
// Set the HTML snapshot directory.doogle;// Set the expiry in hours.doogle;
If you don't want to use cache at all – which isn't recommended, then you can set
You then need to instruct Doogle on which path to fetch.
Q.promise you need to define what happens when Doogle resolves the promise.
From there on in you're on your own! Doogle lets you decide how to serve the HTML snapshot to Googlebot.