|
|
@ -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());
|
|
|
|