master
if (response.status < 400 && ev.request.url.match(location.hostname) && response.headers.has('Content-Type') && ( response.headers.get('Content-Type').match(/^image\//i) ||