how do we set the content type header for a page not served from a server? (i.e. a simple local file saved to desktop)
Say i have a .xml file that i would like to open as application/xml in google-chrome. how do i specify it?
Now i want to open that same file under text/xml with google-chrome is that an option?
My file:
<?xml version="1.0"?>
<test></test>
No, you can’t. HTTP header exists only if it’s a HTTP request or response. AFAIK, you can’t set more than 1 association to a single file type in your web browser.