Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 60170 invoked from network); 17 Apr 2006 10:15:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Apr 2006 10:15:25 -0000 Received: (qmail 7579 invoked by uid 500); 17 Apr 2006 10:15:21 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 7513 invoked by uid 500); 17 Apr 2006 10:15:20 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 7500 invoked by uid 99); 17 Apr 2006 10:15:20 -0000 Received-SPF: pass (hermes.apache.org: domain of bjorn@exoweb.net designates 221.122.43.98 as permitted sender) Received: from [221.122.43.98] (HELO fw.exoweb.net) (221.122.43.98) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Apr 2006 03:15:19 -0700 Received: from [192.168.0.22] (helo=[192.168.0.22]) by fw.exoweb.net with esmtp (Exim 3.36 #1 (Debian)) id 1FVQfx-00045u-00 for ; Mon, 17 Apr 2006 18:09:45 +0800 Mime-Version: 1.0 (Apple Message framework v749.3) In-Reply-To: <20060415080329.GA3673@none.at> References: <44401E35.3090309@rowe-clan.net> <20060415080329.GA3673@none.at> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <168D8518-021D-41E7-9758-626F0A7601A4@exoweb.net> Content-Transfer-Encoding: 7bit From: =?ISO-8859-1?Q?Bj=F8rn_Stabell?= Subject: Standard MSIE tweaks for Apache Date: Mon, 17 Apr 2006 18:09:12 +0800 To: dev@httpd.apache.org X-Mailer: Apple Mail (2.749.3) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N After switching to Apache 2.2.1 (the unreleased version) we found MS IE could no longer access our site (which has keepalive, mod_deflate, mod_proxy, and mod_ssl). At first I thought it was a keepalive or cipher problem, but it turned out to be a problem with IE (6.0) not being able to handle compressed (mod_deflate) files other than text/ html. Does this ring a bell? We're now using the following "IE hacks": # # IE hacks # - IE 1-4 cannot handle keepalive w/ SSL, and doesn't do HTTP 1.1 well # - all IE has problems with compression of non-html stuff (like css and js), # also make sure we vary on User-Agent if we do conditional compression # BrowserMatch "MSIE" ssl-unclean-shutdown gzip-only-text/html BrowserMatch "MSIE [1-4]" nokeepalive downgrade-1.0 force-response-1.0 SetEnvIfNoCase Request_URI \.(?:js|css)$ vary-user-agent Header append Vary User-Agent env=vary-user-agent [...] AddOutputFilterByType DEFLATE text/plain text/html text/xml text/ xhtml text/javascript application/x-javascript application/xhtml+xml application/xml text/css So, my questions are: 1) Anything missing from the above config? 2) Shouldn't there be a standard "IE hacks" configuration for Apache? Maybe even a "mod_ie_hacks"? 3) Instead of matching on .js and .css in the URI, it would be great to have something more robust; is there any way to do this? (Based on content-type, or based on the fact that the content would've been compressed but wasn't because of some env variable was set.) IE is still a pretty popular browser, it's relatively important to handle it well ;) Rgds, Bjorn