[Zope] Caching prob with headers or reverse proxy?
Germer, Carsten
carsten.germer@desy.de
Thu, 17 Apr 2003 15:40:11 +0200
Hi there,
I have set up an Apache as reverse proxy and it works fine so far.
The actual problem is that I only get "image"s to cache, no pagelike
items...
Now I have tail -f on both the zope.log and the apache.log and access things
with lynx -mime_header [-reload] to check the header and caching ability.
If I load an item of type "image" a few times I get this header
HTTP/1.1 200 OK
Date: Thu, 17 Apr 2003 13:29:03 GMT
Server: Zope/(Zope 2.6.1 (source release, python 2.1, linux2), python
2.2.2, linux2) ZServer/1.1b1
Last-Modified: Thu, 17 Apr 2003 13:07:21 GMT
Content-Length: 3686456
Accept-Ranges: bytes
Content-Type: image/bmp
Via: 1.1 wof1.desy.de (Apache/1.3.27)
Age: 1237
X-Cache: HIT from wof1.desy.de
Connection: close
Voila! Delivered from my caching apache as I can also tell from the logs.
Apache has a 200 and full content length and zope has no hit in the log at
all.
Now I try the same with a page template and I always get it fully delivered
from zope. Bummer.
HTTP/1.1 200 OK
Date: Thu, 17 Apr 2003 13:31:17 GMT
Server: Zope/(Zope 2.6.1 (source release, python 2.1, linux2), python
2.2.2, linux2) ZServer/1.1b1
Content-Length: 298
Etag:
Content-Type: text/html
Via: 1.1 wof1.desy.de (Apache/1.3.27)
X-Cache: MISS from wof1.desy.de
Connection: close
Ok, I haven't used a cache-manager yet, so I drop an "Accelerated HTTP cache
manager" in the folder and associate the page with it.
After a few loads I _still_ have every load in the zope.log with full 200
and content length. Allthough the header _seems_ to be correctly set now, I
still have a MISS:
HTTP/1.1 200 OK
Date: Thu, 17 Apr 2003 13:33:44 GMT
Server: Zope/(Zope 2.6.1 (source release, python 2.1, linux2), python
2.2.2, linux2) ZServer/1.1b1
Content-Length: 298
Etag:
Cache-Control: max-age=3600000
Expires: Thu, 29 May 2003 05:33:44 GMT
Content-Type: text/html
Via: 1.1 wof1.desy.de (Apache/1.3.27)
X-Cache: MISS from wof1.desy.de
Connection: close
Anyone any idea, hint or experience to share for this problem?
Nice holidays everyone :) /Gem
--
Carsten Germer, Weboffice Tel.: +49 (0) 40 8998 1661
DESY Email: carsten.germer@desy.de
Notkestr. 85 WWW: http://www.desy.de/
D-22607 Hamburg http://www.germer.org/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GIT d-- s: a C++ UL+ P+++ L++ E-- W+++ N+ o-- K- w
O M- V PS+ PE- Y+ PGP++ t+ 5 X+ R+++ !tv b++ DI++ D++
G e+ h r++ y+
------END GEEK CODE BLOCK------