How to determine mimetype before sending a request
I’m using axios to scrape some websites and sometimes I get images and pdfs in response. Some of these pdfs are huge, up to 13MB which is causing my server to crash. Is it possible to find the mime type of an endpoint before getting(downloading) the entire thing.