How to write VCL in varnish to do no caching

后端 未结 2 453
一向
一向 2021-01-26 06:55

I need to write VCL in Varnish so to prevent caching under certain conditions like cookie value.

Any idea how to do that?

2条回答
  •  不思量自难忘°
    2021-01-26 07:15

    Write and load your own .vcl file to instruct varnish when to cache. By default, requests with cookies will not be cached.

    You could start with the Varnish tutorial, and don't hesitate to ask a more specific question on this site if you can't make it work...

提交回复
热议问题