cool URIs and microsoft internet explorer

Hello 

In the CMS I'm developing [1] I try to adhere to the cool uri
recommendations [2]. For example the page at http://www.osar.ch is
delivered in french, English or German according to the Accept-language
header, the html of the page references the image at
http://www.osar.ch/images/logo which is itself available in these three
languages.

As people happen not to be configuring the browser settings correctly,
it is possible to change the language on the site, causing the server to
set a cookie containing language preferences that override the
http-header on subsequent requests.

This works fine with all tested browser except Microsoft Internet
Explorer which after changing the language continues to show the
previously retrieved image in the old language.

The only work-around I found is to disable caching completely [3],
however this significantly decreases the perceived performance of the
site so I'm wondering if somebody has a better solution for this.

Reto



1. http://Wymiwyg.org/knobot
2. http://www.w3.org/Provider/Style/URI
3. if (isIE(request)) {
            response.setHeader(HeaderName.CACHE_CONTROL, "no-cache"); 
            response.setHeader(HeaderName.PRAGMA, "no-cache"); 
            response.setHeader(HeaderName.EXPIRES, "-1"); 
        }

Received on Monday, 13 June 2005 12:40:24 UTC