Fetcher - Experimental fetcher - dont cache embedded data URLs

browsersteps-refactor
dgtlmoon 1 year ago
parent d939882dde
commit 0b563a93ec

@ -97,6 +97,10 @@ module.exports = async ({page, context}) => {
console.log("Skipping (no_cache_list) - " + url);
return;
}
if (url.toLowerCase().includes('data:')) {
console.log("Skipping (embedded-data) - " + url);
return;
}
response.buffer().then(buffer => {
if (buffer.length > 100) {
console.log("Cache - Saving " + response.request().method() + " - " + url + " - " + response.request().resourceType());

Loading…
Cancel
Save