Re: Caching MS-compressed files

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Tue, 25 Jan 2000 02:23:08 +0100

Kurt Heine wrote:

> file called readme.tx_ which is a ms-compressed file. When squid
> downloads this file it downloads it as a text file (ascii file). Now

Is this a http or an ftp object?

In both cases Squid by default does a binary download (for http there
only exists binary downloads), but it may be tagged as text/plain either
by Squid (in the ftp case) or the origin server (http case), possibly
causing the browser to threat is as a text file when saving it.
 
If it is an ftp object, then one workaround is to change the default
mime type to have a content-type of application/octet-stream instead of
text/plain. The only negative impact from doing so is that users must
click on the view icon on the right to view files of unknown type in
their browser.

--
Henrik Nordstrom
Squid hacker
Received on Mon Jan 24 2000 - 23:00:19 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:50:40 MST