stereobooster/react-snap

cacheAjaxRequests doesn't cache external api calls (just localhost)

canvaspixels opened this issue · 0 comments

Bug Report

Current Behavior
My app just calls 3rd party apis.

if (/^http:\/\/localhost/i.test(responseUrl)) {

the line above in index.js means that only calls on domain localhost get cached.

Expected behavior/code
I should be able to cache all json ajaxRequests.