Is there a way to set/add request header to the call?
I would need to add 'Cache-Control': "private, no-cache, no-store" .
function urlToPromise(url) { return new Promise(function(resolve, reject) { JSZipUtils.getBinaryContent(url, function(err, data) { if (err) { reject(err); } else { resolve(data); } }); }); }
Is there a way to set/add request header to the call?
I would need to add 'Cache-Control': "private, no-cache, no-store" .
function urlToPromise(url) { return new Promise(function(resolve, reject) { JSZipUtils.getBinaryContent(url, function(err, data) { if (err) { reject(err); } else { resolve(data); } }); }); }