Pages without extension

If the page does not have an extension, set it to .json before storing it. This
allows the cache to handle pages such as domain.com/page and
domain.com/page/anotherpage. Old version would cache whichever came first and
fail on the second.