Re: Writing a file in Response
- From: Mike <unknown@xxxxxxxxxx>
- Date: Thu, 04 Jun 2009 19:32:19 -0400
IE has a history of issues with the cache related control headers. To resolve, many HTTP request logics, like AJAX for example, will add a
&unique_name=some_unique_counter
to the request for one reason - to force IE to make the request.
--
nak wrote:
Hi Patrice,.
Yes, this is a client side setting for your mime type. So not sure how your application is installed client side but you could enable this during setup...
My last test proved this to not be the case. I made a web service that dishes out a ".torrent" file of the correct MIME type in the same way that I am serving my own file. But it does *not* act in the same way as simply pulling a file from a web page. It offers no functionality of treating the file with any automatic behavior. I think at the moment it is recognising the file via extension, and not by MIME type, I can also back this up by removing MIME information from the registry and it still works.
I think it might have something to do with the Cache Control parameter. I have read that it should be set to "no-transfer" in order to prevent IE from guessing the MIME type of an attachment. Unfortunately .NET doesn't seem to let me change it to this and other settings seem to have no effect.
In the morning I am going to simply compare a working set of headers to the headers that do not work, and that should provide the answer.
I'll update...
Nick.
- Follow-Ups:
- Re: Writing a file in Response
- From: nak
- Re: Writing a file in Response
- References:
- Writing a file in Response
- From: nak
- Re: Writing a file in Response
- From: Mike
- Re: Writing a file in Response
- From: nak
- Re: Writing a file in Response
- From: Mike
- Re: Writing a file in Response
- From: nak
- Re: Writing a file in Response
- From: Mike
- Re: Writing a file in Response
- From: nak
- Re: Writing a file in Response
- From: Patrice
- Re: Writing a file in Response
- From: nak
- Writing a file in Response
- Prev by Date: Re: Custom attributes on property
- Next by Date: Re: Adding keydown event handler
- Previous by thread: Re: Writing a file in Response
- Next by thread: Re: Writing a file in Response
- Index(es):
Relevant Pages
|