[master] f8e95527c Add release notes

guillaume quintard gquintard at users.noreply.github.com
Wed Aug 22 16:21:07 UTC 2018


commit f8e95527c0d3cf7f1bf6c23c21367bba20474c1a
Author: Guillaume Quintard <guillaume at varnish-software.com>
Date:   Wed Aug 22 09:16:09 2018 -0700

    Add release notes

diff --git a/bin/varnishd/cache/cache_vrt_var.c b/bin/varnishd/cache/cache_vrt_var.c
index 175bee8a3..2561d7db6 100644
--- a/bin/varnishd/cache/cache_vrt_var.c
+++ b/bin/varnishd/cache/cache_vrt_var.c
@@ -806,7 +806,7 @@ VRT_r_obj_hits(VRT_CTX)
 	CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
 	CHECK_OBJ_NOTNULL(ctx->req, REQ_MAGIC);
 	CHECK_OBJ_NOTNULL(ctx->req->objcore, OBJCORE_MAGIC);
-	return (ctx->req->is_hit ? ctx->req->objcore->hits : 0);
+	return (ctx->req->is_hit ? ctx->req->objcore->hits : 1);
 }
 
 VCL_BOOL
diff --git a/doc/sphinx/whats-new/changes-6.1.rst b/doc/sphinx/whats-new/changes-6.1.rst
index ee3644694..91d4b8491 100644
--- a/doc/sphinx/whats-new/changes-6.1.rst
+++ b/doc/sphinx/whats-new/changes-6.1.rst
@@ -10,4 +10,8 @@ Changes in Varnish 6.1
 
 **XXX**
 
+Varnish now won't rewrite the content-length header when responding to any HEAD
+request, making it possible to cache HEAD requests independently from the GET
+ones (peviously a HEAD request had to be a pass to avoid this rewriting).
+
 *eof*


More information about the varnish-commit mailing list