Greg,

On 1/31/12 11:10 AM, Greg Thomas wrote:
> On 31 January 2012 15:48, Christopher Schultz
> <ch...@christopherschultz.net> wrote:
>> Nathan,
>>
>> On 1/25/12 1:16 PM, Nathan Bubna wrote:
>>> text/velocity sounds fine to me.  this isn't something that i recall
>>> coming up previously, so i'm pretty sure there's no official opinion.
>>
>> Why not text/plain?
> 
> It used to be the case that IE, on seeing a text/plain MIME type,
> would completely ignore the MIME type and guess a format based on the
> filename of the download in question.

I thought it did content-sniffing:

http://msdn.microsoft.com/en-us/library/ie/ms775148%28v=vs.85%29.aspx
http://blogs.msdn.com/b/ie/archive/2005/02/01/364581.aspx

> Later versions of IE are streets ahead thatn the older versions in
> many ways so hopefully this mis-feature has been corrected, but I'd
> be wary of serving any file with a text/plain MIME type unless it was
> called something.txt or similar.

I make it a point to always have the template itself (or, usually, the
servlet handling the incoming request -- like VelocityViewServlet, etc.)
set the Content-Type (and the encoding as well).

-chris

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to