diff --git a/addon/mixins/fastboot-adapter.js b/addon/mixins/fastboot-adapter.js index fe7fc4e0..3e337d8d 100644 --- a/addon/mixins/fastboot-adapter.js +++ b/addon/mixins/fastboot-adapter.js @@ -44,7 +44,7 @@ export default Mixin.create({ return function(response) { if (isFastboot) { - let key = shoeboxize(cacheKey([type, url, params])); + let key = shoeboxize(cacheKey([type, url.replace(/^.*\/\/[^\/]+/, ''), params])); cache[key] = JSON.stringify(response); } @@ -60,7 +60,7 @@ export default Mixin.create({ let box = shoebox && shoebox.retrieve('ember-data-storefront'); if (!isFastboot && box && box.queries && Object.keys(box.queries).length > 0) { - let key = shoeboxize(cacheKey([type, url, params])); + let key = shoeboxize(cacheKey([type, url.replace(/^.*\/\/[^\/]+/, ''), params])); payload = box.queries[key]; delete box.queries[key]; }