Update request-caching.js

fix to allow for JSON objects to be POSTed