Miernik <[EMAIL PROTECTED]> writes: > When I access http://www.inteligo.pl/InfoSite/_images/background.jpg > through wwwoffle, it get's me a 3578 bytes file, while the file is > really 4209 bytes. > > It ommits the first 631 bytes. > > The file is a JPEG, but the Contect Type is text/html so I have done > <http://www.inteligo.pl/InfoSite/_images/*.jpg> Content-Type = image/jpeg > in my CensorHeader section.
The server is broken then and I am surprised that your browser will display the image. The only browser that I know of that uses the filename extension rather than the Content-Type of the response is Internet Explorer. > wwwoffle still adds then cache-info. So I added > <http://www.inteligo.pl/InfoSite/_images/*.jpg> add-cache-info = no > to my ModifyHTML section. That solved the cache-info. > BTW: I think that wwwoffle shouldn't add cache info if an URL matches > a CensorHeader entry of image/* etc. I did not consider that the CensorHeader section of the configuration file would be used to change the Content-Type. The ModifyHTML options look at the unmodified headers of the server response and not the modified ones. I have changed this now for the next version. > But the file returned to the browser is cut as I wrote at the > beginning. This could be because the HTML modifications are still enabled for this URL. You should use: <http://www.inteligo.pl/InfoSite/_images/*.jpg> modify-html = no -- Andrew. ---------------------------------------------------------------------- Andrew M. Bishop [EMAIL PROTECTED] http://www.gedanken.demon.co.uk/ WWWOFFLE users page: http://www.gedanken.demon.co.uk/wwwoffle/version-2.8/user.html
