News for hackers. Stuff that matters.
Re:Researching a new form of HTTP caching optimization by cheald on Tuesday January 06, 2015 @01:26PM (#8846070)
Off the top of my head:

    sub vcl_recv {
      set req.http.X-Custom-Cookie-Value = regsub(req.http.cookie, ".*;|^)YOUR_COOKIE_NAME=([^;]+)(;.*|$)", "\2");
    }
Then you can just:

    sub vcl_hash {
      set req.hash += req.http.X-Custom-Cookie-Value;
    }
And now you're cache segmented on that cookie value.

There are no comments on this comment yet.