Issue with passing Cache-Control: no-cache header to Tomcat during cache misses

Dridi Boukelmoune dridi at varni.sh
Thu Jun 15 12:47:27 UTC 2023


On Thu, Jun 15, 2023 at 9:33 AM Uday Kumar <uday.polu at indiamart.com> wrote:
>
>
>> There is this in the code:
>>
>> > H("Cache-Control",      H_Cache_Control,          F      )      // 2616 14.9
>>
>> We remove the this header when we create a normal fetch task, hence
>> the F flag. There's a reference to RFC2616 section 14.9, but this RFC
>> has been updated by newer documents.
>
>
> Where can I find details about the above code, could not find it in RFC 2616 14.9!

This is from include/tbl/http_headers.h in the Varnish code base.

I'm not going to break it down in details, but that's basically where
we declare well-known headers and when to strip them when we perform a
req->bereq or beresp->resp transition.

In this case, we strip the cache-control header from the initial
beresp when it is a cache miss.

Dridi


More information about the varnish-misc mailing list