On Sat, 2003-08-23 at 07:53, Gianugo Rabellino wrote:
> So what happens if an included resource is not under ESI control and has
> not an ESI header? Will it be cached regularly or will it be fetched
> every time?
It will be cached according to normal HTTP rules.
> (repeated) manual telnet, always the same output:
>
> Connected to localhost.
> Escape character is '^]'.
> GET /test.html HTTP/1.0
>
> HTTP/1.0 200 OK
> Date: Fri, 22 Aug 2003 21:40:08 GMT
> Server: Apache/2.0.44 (Unix) DAV/2 Catacomb/0.8.1-dev
> Cache-Control: max-age=60
> Expires: Fri, 22 Aug 2003 21:41:08 GMT
> Last-Modified: Fri, 22 Aug 2003 12:53:45 GMT
> Surrogate-Control: max-age=120,content="ESI/1.0"
> Content-Type: text/html; charset=ISO-8859-1
> X-Cache: MISS from linux.local
> Via: 1.0 linux.local (squid/3.0-PRE3-20030822)
> Connection: close
Here's my equivalent test page - from the origin:
robertc@lifelesslap:~$ telnet 192.168.0.9 9673
Trying 192.168.0.9...
Connected to 192.168.0.9.
Escape character is '^]'.
GET /ESI/Try.html HTTP/1.0
HTTP/1.0 200 OK
Server: Zope/(unreleased version, python 2.1.3, linux2) ZServer/1.1b1
Date: Sat, 23 Aug 2003 11:29:36 GMT
Content-Type: text/html
Surrogate-Control: max-age=30+60, content="ESI/1.0"
Etag:
Connection: close
Content-Length: 906
Set-Cookie: username="james"
and from squid:
HTTP/1.0 200 OK
Server: Zope/(unreleased version, python 2.1.3, linux2) ZServer/1.1b1
Date: Sat, 23 Aug 2003 11:33:08 GMT
Content-Type: text/html
Surrogate-Control: max-age=30+60, content="ESI/1.0"
Set-Cookie: username="james"
X-Cache: MISS from lifelesslap
X-Cache-Lookup: HIT from lifelesslap:3128
Via: 1.0 lifelesslap (squid/3.0.DEVEL-CVS)
Connection: keep-alive
> Sorry for the lengthy information, I hope that they might be useful for
> you to track down what's happening (and I sure hope I did something very
> silly).
I'm not sure whats going on.
You might try using the exact ESI header I have.
Also, you might try removing the Expires: header from your server
response.
Cheers,
Rob
-- GPG key available at: <http://members.aardvark.net.au/lifeless/keys.txt>.
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:19:05 MST