cache documents in localStorage
allows us to open a result in a new tab and reload the page and still get our results from "last time"