Hi all
I'm trying to use squid as a reverse proxy in front of Tomcat and to make things more complicated squid is compiled with ESI enabled :-)
I've allready convinced squid-tomcat dou to process basic esi example but squid doesn't cache anything. I suspect that it's because of http headers that Tomcat by default adds to each response. I tried similar configuration with Apache and everything works promising ;-)
Any sugestions what I'm doing wrong ?
This is from Tomcat: HTTP/1.1 200 OK Pragma: No-cache Cache-Control: no-cache Expires: Thu, 01 Jan 1970 00:00:00 GMT Surrogate-Control: max-age=600, content="ESI/1.0" Content-Type: text/html;charset=UTF-8 Content-Length: 631 Date: Thu, 08 Jan 2004 10:40:23 GMT Server: Apache-Coyote/1.1 Connection: close --cut--
This is from Apache: HTTP/1.1 200 OK Date: Thu, 08 Jan 2004 11:09:40 GMT Server: Apache/2.0.48 (Unix) Last-Modified: Wed, 07 Jan 2004 19:35:55 GMT Accept-Ranges: bytes Content-Length: 744 Surrogate-Control: max-age=600,content="ESI/1.0" Connection: close Content-Type: text/html; charset=ISO-8859-1 --cut--
This is from squid + Apache: HTTP/1.0 200 OK Date: Wed, 07 Jan 2004 19:36:40 GMT Server: Apache/2.0.48 (Unix) Last-Modified: Wed, 07 Jan 2004 19:35:55 GMT Surrogate-Control: max-age=600,content="ESI/1.0" Content-Type: text/html; charset=ISO-8859-1 Age: 56559 X-Cache: HIT from exo Via: 1.0 exo (squid/3.0-PRE3-20040107) Connection: close --cut--
This is from squid + Tomcat: HTTP/1.0 200 OK Pragma: No-cache Cache-Control: no-cache Expires: Thu, 01 Jan 1970 00:00:00 GMT Surrogate-Control: max-age=600, content="ESI/1.0" Content-Type: text/html;charset=UTF-8 Date: Thu, 08 Jan 2004 10:52:15 GMT Server: Apache-Coyote/1.1 X-Cache: MISS from viper Via: 1.0 viper (squid/3.0-PRE3-20040107) Connection: close
-- Regards
Konrad