On Mon, Dec 13, 2004 at 02:10:59PM -0500, Andrew Sawyers wrote:
> John Poltorak wrote:
> > After getting Squid set up on the same host as Zope, I thought I was
> > getting Squid to serve out cached Zope pages, but it looks as though it is
> > simply acting as a redirector... Here are a couple of access.log entries:-
> >
> > 1102960638.320 37210 127.0.0.1 TCP_MISS/200 1566 GET http://localhost:8080/guestbook - DIRECT/127.0.0.1 text/html
> > 1102963204.410 480 127.0.0.1 TCP_MISS/200 3325 GET http://localhost:8080/ - DIRECT/127.0.0.1 text/html
> > 1102963205.490 30 127.0.0.1 TCP_MISS/404 1369 GET http://localhost:8080/favicon.ico - DIRECT/127.0.0.1 text/html
> >
> >
> >
> > Do I need to configure Squid (or Zope) in some way to keep some pages in
> > cache? The cache is completely empty.
> >
> >
> Check your headers; I'm guessing that there are no cache headers being
> set.....
> wget -S url
G:\ux2bs\lib>wget -S http://localhost/
--19:15:27-- http://localhost/
=> `index.html'
Resolving localhost... done.
Connecting to localhost[127.0.0.1]:80... connected.
HTTP request sent, awaiting response...
1 HTTP/1.0 200 OK
2 Server: Zope/(Zope 2.7.3-0, python 2.3.4, os2emx) ZServer/1.1 Plone/2.0.5
3 Date: Mon, 13 Dec 2004 19:15:27 GMT
4 Content-Length: 3053
5 Content-Type: text/html
6 X-Cache: MISS from localhost
7 X-Cache-Lookup: MISS from localhost:80
8 Connection: keep-alive
100%[====================================>] 3,053 2.91M/s ETA 00:00
19:15:28 (2.91 MB/s) - `index.html' saved [3053/3053]
>
> Look for something like the following in your headers:
> ...........
> 12 Cache-Control: max-age=60, must-revalidate
> ...........
What do I need to do to create such headers?
>
> Andrew
>
>
> --
> Zope Managed Hosting
> Systems Administrator/Software Engineer
> Zope Corporation
> (540) 361-1700
-- JohnReceived on Mon Dec 13 2004 - 12:21:15 MST
This archive was generated by hypermail pre-2.1.9 : Sat Jan 01 2005 - 12:00:02 MST