title: Varnish: purge if I have cookie in hash_data
body: <p><strong>Problem</strong>:</p>
  
  <p>I couldn't purge my page. After many time I decided to find out how purge works and find! </p>
  
  <blockquote>
    <p>As you can see we have used a new action - return(purge). This ends execution of vcl_recv and jumps to vcl_hash. This is just like we handle a regular request. When vcl_hash calls return(lookup) varnish will purge the object and then call vcl_purge. Here you have the option of adding any particular actions you want Varnish to take once it has purge the object. <a href="https://www.varnish-cache.org/docs/4.0/users-guide/purging.html#http-purging" rel="nofollow noreferrer">docs</a></p>
  </blockquote>
  
  <p>And then I understood that I have cookie in hash_data and I can't purge specific url. </p>
  
  <p><strong>Question</strong>:</p>
  
  <p>How can purge all my pages by URI? I think ban system can't help me. Maybe you suggest me something?</p>