On Thu, Jun 15, 2023 at 9:33 AM Uday Kumar <[email protected]> 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 _______________________________________________ varnish-misc mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
