Not seeing a successful purge

John Norman john at 7fff.com
Fri Feb 12 16:50:55 CET 2010


Thanks, Laurence. But . . .

Am I misreading the varnishlog I quoted? The Accept-Encoding headers
seem both to contain gzip:

Here's the Accept-Encoding from the browser:

4 RxHeader     c Accept-Encoding: gzip,deflate

Here it is from the PURGE:

4 RxHeader     c Accept-Encoding: gzip,identity

(Both quoted from my original message.)

They both contain gzip, so the hash should be the URL + gzip:

sub vcl_hash {
  set req.hash += req.url;

  if (req.http.Accept-Encoding ~ "gzip") {
    set req.hash += "gzip";
  } else if (req.http.Accept-Encoding ~ "deflate") {
    set req.hash += "deflate";
  }
  return (hash);
}

So, I'm still not seeing why the purge isn't hitting:



More information about the varnish-misc mailing list