C
charlesdesaintaignan
Hi,
I've got a site where I want to do as much browser caching as possible
by setting the appropriate headers in the HTTP response. However, I
need to cache to be per-language. Namely, if you change your language
setting in the browser, the server is hit again to get the response for
that language.
I have this working in Firefox with the following response:
HTTP/1.x 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=86400, public, must-revalidate
Vary: Accept-Language
Last-Modified: Mon, 12 Jun 2006 19:52:32 GMT
Date: Mon, 12 Jun 2006 19:56:36 GMT
The "Vary" header is the one that tells the browser cache that this
response varys depending on the Accept-Language request header. Like I
said, this work in Firefox - however, nothing gets cached in IE. If I
remove the "vary" header, then IE caches properly. Does anyone know
about an IE bug around the "vary" header, or a way around this?
Thanks.
I've got a site where I want to do as much browser caching as possible
by setting the appropriate headers in the HTTP response. However, I
need to cache to be per-language. Namely, if you change your language
setting in the browser, the server is hit again to get the response for
that language.
I have this working in Firefox with the following response:
HTTP/1.x 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=86400, public, must-revalidate
Vary: Accept-Language
Last-Modified: Mon, 12 Jun 2006 19:52:32 GMT
Date: Mon, 12 Jun 2006 19:56:36 GMT
The "Vary" header is the one that tells the browser cache that this
response varys depending on the Accept-Language request header. Like I
said, this work in Firefox - however, nothing gets cached in IE. If I
remove the "vary" header, then IE caches properly. Does anyone know
about an IE bug around the "vary" header, or a way around this?
Thanks.