Fetcher - Experimental fetcher - dont cache embedded data URLs

browsersteps-refactor
dgtlmoon 2 years ago
parent d939882dde
commit 0b563a93ec

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

Loading…
Cancel
Save