I am playing with experimental webRequest API from chrome.
The goal is to identify web request that will pop up a download window.
For the moment, my filtering is based on file extension and that filters pretty well, but I want to block any kind of file, even if they don’t have an extension.
I am pretty sure HTTP Response Headers can help me identify the responses that will be treated as download.
Have you any idea of which one(s) will trigger it?
Thanks,
Florent
You’re looking for a Content-Disposition which specifies attachment.
[edit]
You may also have to look for a content-type of application/force-download.
[/edit]