(0002997)
|
sam
|
04-18-08 09:09
|
|
For 2), Resin set's the Cache-control: private if
use-vary=false because otherwise browsers that do not accept gzip could
get a gzipped response served to them out of the cache.
use-vary is a bit of a legacy configuration, it is intended to
workaround an IE bug that causes IE to never cache responses that set
the Vary header.
A better way to solve that issue is to use rewrite-vary-as-private=true
in the <cache> configuration. That way the gzipped response is still
stored in Resin's proxy cache, and browsers will get Cache-Control: private
instead of Vary: Accept-Encoding
More informatrion about the IE problem with Vary is here:
http://bugs.caucho.com/view.php?id=1581 [^]
Documentation for rewrite-vary-as-private is here:
http://www.caucho.com/resin/doc/cluster-tags.xtp#cache [^] |
|