Hi Anders,

If you perform certain actions in vcl_hit, Varnish will mark the object as
a 'hit for pass' which means that from then on it will always simply pass
every matching request to the backend. A restart clears this. If I recall
correctly, one of the triggers is using 'pass' inside vcl_hit or
vcl_fetch.

regards,
Darryl Dixon
Winterhouse Consulting Ltd
http://www.winterhouseconsulting.com

> Hi,
>
> I had a situation where some cache servers would cache a URL, and others
> would not. The strange thing is, if I restarted Varnish on the servers
> that did not cache it, then it would cache the URL. How is that? When
> Varnish delivers a miss, it should fetch (and if possible) cache the URL
> on the next attempt? Why does a restart have any significance? I tried
> some purging, without any success. After all, how can you purge
> something that is not cached..
>
> I wrote a simple script to check:
>
> Checking server cache2.xx.no for URI
> banner.xx.no/rest/foo_rest/foo/prepackage/result?&BAR=200907&sort=1
> =>
> HTTP/1.1 200 OK
> X-Varnish-IP: 192.168.39.142
> X-Varnish-Server: cache2
> X-Varnish: 942085260 941884380
> X-Cache: HIT
>
> Sjekker server cache3.xx.no for URI
> banner.xx.no/rest/foo_rest/foo/prepackage/result?&BAR=200907&sort=1
> =>
> HTTP/1.1 200 OK
> X-Varnish-IP: 192.168.39.143
> X-Varnish-Server: cache3
> X-Varnish: 3642432563
> X-Cache: MISS
>
> Miss..
>
> --
> Anders.
> _______________________________________________
> varnish-misc mailing list
> [email protected]
> http://projects.linpro.no/mailman/listinfo/varnish-misc
>

_______________________________________________
varnish-misc mailing list
[email protected]
http://projects.linpro.no/mailman/listinfo/varnish-misc

Reply via email to