[Twisted-web] .htc behaviors
Dominic Fox
dominic.fox at gmail.com
Thu Aug 12 03:32:52 MDT 2004
James,
Spot on: the problem was caused by the browser cacheing the file with
the wrong content-type. Everything's working now.
Thanks for your help,
Dominic
On Wed, 11 Aug 2004 17:44:13 -0400, James Y Knight <foom at fuhm.net> wrote:
>
> On Aug 11, 2004, at 5:24 PM, Dominic Fox wrote:
> > One fix is to change the extension to something else, e.g. .htcHACK,
> > and set the MIME type for that extension instead. That works OK. But
> > why does it work, and why is it necessary? Is something else in
> > Twisted deciding that all files with .htc extensions are Twisted
> > documentation pages, and forcing the content type header back to
> > text/html?
>
> My first guess is that your file was cached by the browser with the
> wrong content-type, before you figured out how to set the right one.
> You might try just renaming the file to somethingelse.htc.
>
> Did you verify that the server is actually sending the wrong
> content-type when it's .htc? The easiest way to do so is to telnet to
> your webserver and type "HEAD /whatever.file HTTP/1.0" and look at the
> output.
>
> James
>
> _______________________________________________
> Twisted-web mailing list
> Twisted-web at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
>
--
// Dream in black and white -
// model cities, shooting up in the air
More information about the Twisted-web
mailing list