For a particular domain, how can I cache its JSON responses locally?

Posted by Chris on Server Fault See other posts from Server Fault or by Chris
Published on 2012-09-17T19:49:36Z Indexed on 2012/09/17 21:41 UTC
Read the original article Hit count: 189

Filed under:
|
|
|

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.

© Server Fault or respective owner

Related posts about reverse-proxy

Related posts about cache