Pushstate: cache ajax request in javascript