[Twisted-web] .htc behaviors

James Y Knight foom at fuhm.net
Wed Aug 11 15:44:13 MDT 2004

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 


More information about the Twisted-web mailing list