please don’t cache 403 by default
-
It looks like the configs generated by this plugin cause varnish to cache 403 errors, which is not the default.
The default status codes cached by Varnish are listed here:
* https://book.varnish-software.com/4.0/chapters/VCL_Basics.html#the-initial-value-of-beresp-ttl
Can you please update the line
if (beresp.status == 404 || beresp.status >= 500) {to just blacklist everything except the codes listed as the varnish defaults? Except 404, I suppose?
if ( beresp.status != 200 && beresp.status != 203 && beresp.status != 300 && beresp.status != 301 && beresp.status != 302 && beresp.status != 304 && beresp.status != 307 && beresp.status != 410 ) {Or however else you think is best.
The topic ‘please don’t cache 403 by default’ is closed to new replies.