For example the page is sending a 'link' http headers field that I don't want to load an async CSS from. How can I block it? Is it possible that I get those headers, remove the LINK field from it, and then page will load without this addition CSS (non-placed in page body)?
I have tried to modify the headers to no avail.
request('https://www.google.com', function(err, resp, data){
if (resp.statusCode == 200) {
console.log(resp.headers); // headers
}
else {console.log(err);}
});
Request is a node.js module. I need to modify headers before they are loaded by browser (passing modified headers by 'render' with combination of ejs template is not working).