[master] 0496921fe document that we also consider an internal timestamp for 304s

Nils Goroll nils.goroll at uplex.de
Sun Nov 10 16:08:05 UTC 2019


commit 0496921fea70bb6470c52082efb520cf9a2cf3d1
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Sun Nov 10 17:05:59 2019 +0100

    document that we also consider an internal timestamp for 304s
    
    closes #3118

diff --git a/doc/sphinx/reference/vcl_var.rst b/doc/sphinx/reference/vcl_var.rst
index 7474e02fc..4736826bd 100644
--- a/doc/sphinx/reference/vcl_var.rst
+++ b/doc/sphinx/reference/vcl_var.rst
@@ -1159,6 +1159,17 @@ resp.status
 	a return(deliver) from vcl_deliver for conditional requests
 	to cached content if validation succeeds.
 
+	For the validation, first ``req.http.If-None-Match`` is
+	compared against ``resp.http.Etag``. If they compare equal
+	according to the rules for weak validation (see RFC7232), a
+	304 is sent.
+
+	Secondly, ``req.http.If-Modified-Since`` is compared against
+	``resp.http.Last-Modified`` or, if it is unset, against the
+	point in time when the object was last modified based on the
+	``Date`` and ``Age`` headers received with the backend
+	response which created the object. If the object has not been
+	modified based on that comparison, a 304 is sent.
 
 resp.reason
 


More information about the varnish-commit mailing list