jean-marc pouchoulon <[EMAIL PROTECTED]> writes:
> I set max-age=0 and s-max-age=600 in the zope caching policy manager
> and varnish don't cache any content ( except if I force
> obj.ttl = 10m in vcl_fetch.)
>
> if max-age=1 varnish is caching the content.
>
> is it the considering behaviour for varnish ? when varnish is supposed
> to cache a content ?
Varnish currently does not know about s-maxage. Please try the
attached patch and let me know if it produces the desired result.
> can someone explain the meaning of insert_pass , the difference
> between pass and pipe ?
Check out trunk; insert_pass no longer exists, and pass and pipe are
fairly well documented in the vcl(7) man page.
DES
--
Dag-Erling Smørgrav
Senior Software Developer
Linpro AS - www.linpro.no
Index: bin/varnishd/rfc2616.c
===================================================================
--- bin/varnishd/rfc2616.c (revision 1382)
+++ bin/varnishd/rfc2616.c (working copy)
@@ -109,7 +109,8 @@
retirement_age = INT_MAX;
u1 = u2 = 0;
- if (http_GetHdrField(hp, H_Cache_Control, "max-age", &p)) {
+ if (http_GetHdrField(hp, H_Cache_Control, "s-maxage", &p) ||
+ http_GetHdrField(hp, H_Cache_Control, "max-age", &p)) {
u1 = strtoul(p, NULL, 0);
u2 = 0;
if (http_GetHdr(hp, H_Age, &p)) {
_______________________________________________
varnish-misc mailing list
[email protected]
http://projects.linpro.no/mailman/listinfo/varnish-misc