What to do when the backend sends no caching information?

2008-12-12 Thread Alecs Henry
Hi All, In testing varnish in different situations, I came accross a backend that sends no caching information in its responses, no Expires, cache-control or anything. Ok, I thought, I'll just set the TTL on that object (namely an html page) in VCL. Well, turns out varnish may be setting the ttl

Re: What to do when the backend sends no caching information?

2008-12-12 Thread Per Buer
Hi, Alecs Henry wrote: Well, turns out varnish may be setting the ttl all right (I do it in vcl_fetch, but frankly there really is no way to see if it is set correctly or not! or is there?) but the page always gets a PASS, never a HIT. Age: is set to 0 by varnish. The client probably sends

Re: What to do when the backend sends no caching information?

2008-12-12 Thread Alecs Henry
Hi Per, I'm actually using the cookies in the cache (using the information provided on the website -- set req.hash += req.http.cookie;) and it works just fine! One thing that the backend does is vary on user-agent, not only content-encoding (I've removed the UA vary on the response, though). So