For a particular domain, how can I cache its JSON responses locally?
- by Chris
I'm coding the frontend of a web app that uses XHR to grab JSON data from a 3rd party.
The 3rd party service is slow and because of its API design, we need to make a LOT of API requests every time I refresh the page to test some new code. It's making the development loop painful.
The requests are GETs, POSTs and PUTs even though I'm pretty sure none of the requests are changing state.
I want to go to localhost for the JSON rather than to this 3rd party API - simply to make my development process faster.