title: Varnish: how to separately cache pages based on value of a specific cookie
body: <p>I manage a site that has a single cookie, which we have to use, but will always be one of 9 values (including no value). I'd like to use varnish in front of our application servers, with varnish separately caching a version of each page based on the cookie value. </p>
  
  <p>So if we have page /page1, Varnish should separately manage a copy of what /page1 looks like with cookie values a, b, c, d, etc....</p>
  
  <p>Assume we have plenty of memory on the Varnish server to handle storing all pages with all cookie combinations. </p>
  
  <p>We have tried many VCL settings but can't figure out exactly how to make this work. Varnish needs to send that specific cookie to our application server as well, so our application knows which content to send back.</p>
  
  <p>Thanks in advance!</p>