Re: [squid-users] Squid Ignoring ESI

From: Robert Collins <robertc_at_squid-cache.org>
Date: Thu, 23 Apr 2009 10:01:05 +1000

On Wed, 2009-04-22 at 22:20 +0000, James Ellis wrote:
> I am trying to use the ESI parser in Squid. I have compiled with
> "--enable-esi" and set "esi_parser custom" in my squid.conf file.

You shouldn't need to set esi_parser at all.

> Through the squid client, I can access a JSP page running on my local
> machine, but I am unable to parse ESI pages.
>
> Questions:
>
> 1) Is there a set of instructions anywhere on how to use ESI and Squid
> together? If not I'd be happy to piece together what I have (if I
> ever get it actually working).
>
> 2) I read somewhere that you need to set the header
> "Surrogate-Control", so I've tried the following:
>
> response.setHeader("Surrogate-Control", "no-store, content=\"ESI/1.0
> \"");
>
> In this case the esi tags are just ignored.

This should be correct, I suggest upping the debug flags for ESI to see
what squid thinks is happening.

> 3) Are there any other squid.conf settings required other than
> "esi_parser custom" required?

Not that I remember.

-Rob

Received on Thu Apr 23 2009 - 00:01:17 MDT

This archive was generated by hypermail 2.2.0 : Thu Apr 23 2009 - 12:00:01 MDT