Different cache policy for googlebot

Tollef Fog Heen tfheen at varnish-software.com
Thu Dec 2 14:09:27 CET 2010


]] David Turner 

| On 2 Dec 2010, at 10:33, Poul-Henning Kamp wrote:
| 
| > You only need to slow it on cache misses ?
| 
| The other way around. I don't mind it getting old data for a cache
| hit, but a cache miss should be serviced as required.
| 
| Humans should get be getting lightly cached pages. This is currently
| being handled in the application but to keep the varnish cache up to
| date the human requests need to be fetched instead of passed straight
| through.

Sounds like you want to set obj.grace to a high value, and then set
req.grace to low values for humans, and a higher value for robots and
turn on saint mode for robots.  At least I think that'll fix your use
case.

-- 
Tollef Fog Heen
Varnish Software
t: +47 21 98 92 64




More information about the varnish-misc mailing list