From: Rimantas Liubertas Date: 2006-12-22T02:55:07+09:00 Subject: Re: WEBrick and swf files <...> > When I access the file from Internet Explorer 6 (served from WEBrick), > the swf file loads fine. When I try from firefox, I am asked if I want > to download the file. > > Here is what WEBrick logs when it serves the file: > > localhost - - [21/Dec/2006:10:11:22 CST] "GET /hello.lzx.swf HTTP/1.1" > 304 0 Status code 304 "Not modified" means that server has the same version of the file as browser in it's cache. So in this case file won't be served and browser will use cached version. > I checked in firefox options and it has swf files listed to be opened > with shockwave flash. I also added "swf" => > "application/x-shockwave-flash" as a mime type in webrick (added to > httputils.rb) It would help to see full set of headers (you can use LiveHTTPHeaders or Firebug extesnions for that), but I have a wild idea: can you try to rename your swf from hello.lzx.swf to, say hello-lzx.swf maybe something along the path thinks that .lzx is extension of the file, not .swf.... Regards, Rimantas -- http://rimantas.com/