Hi Dridi,

Thanks for your response.

I am new to Varnish. Could you please provide an example (detailed one would be nice) for the following approach you suggested?

A different strategy could be to have a "short" TTL, a virtually
infinite grace period (you can also set it via Cache-Control) and make
use of Last-Modified/Etag headers.

This way Varnish will frequently ask your backend (short TTL) but will
probably serve most requests from cache (high grace) and hammer your
backend more often. The last point can be cheap if you implement IMS
properly in your backend.

This way you don't need to involve more teams, the people responsible
for the backend's Cache-Control can now handle grace and conditional
requests.

Cheers
Thanks,
Pinakee

_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to