Mailing List Archive

[6.0] f1d13df95 Document special meaning of status code also for resp.status
commit f1d13df953b99041e3ee6e87465038cbef1727f1
Author: Martin Blix Grydeland <martin@varnish-software.com>
Date: Tue Apr 28 13:03:48 2020 +0200

Document special meaning of status code also for resp.status

Copy paste the text from beresp.status to resp.status about the special
handling of status codes.

diff --git a/doc/sphinx/reference/vcl_var.rst b/doc/sphinx/reference/vcl_var.rst
index 16a35106a..99c114f39 100644
--- a/doc/sphinx/reference/vcl_var.rst
+++ b/doc/sphinx/reference/vcl_var.rst
@@ -1099,6 +1099,10 @@ resp.status
Assigning a HTTP standardized code to resp.status will also
set resp.reason to the corresponding status message.

+ Status codes on the form XXYZZ can be set where
+ XXYZZ is less than 65536 and Y is [1...9].
+ Only YZZ will be sent back to clients.
+
resp.status 200 will get changed into 304 by core code after
a return(deliver) from vcl_deliver for conditional requests
to cached content if validation succeeds.
_______________________________________________
varnish-commit mailing list
varnish-commit@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit