diff --git a/src/core/cache-storage.ts b/src/core/cache-storage.ts index 3c6da82da..3e88e4b56 100644 --- a/src/core/cache-storage.ts +++ b/src/core/cache-storage.ts @@ -178,7 +178,8 @@ export class Cache { }; xhr.onerror = reject; - xhr.open('GET', `${proxy}?url=${encodeURIComponent(src)}&responseType=${responseType}`); + const queryString = proxy.indexOf('?') > -1 ? '&' : '?'; + xhr.open('GET', `${proxy}${queryString}url=${encodeURIComponent(src)}&responseType=${responseType}`); if (responseType !== 'text' && xhr instanceof XMLHttpRequest) { xhr.responseType = responseType;