Varnish 默认缓存 404s 吗?
Does Varnish cache 404s by default?
我真的很惊讶我在任何地方都很难找到这个答案,但我找不到。
随着vcl_recv
等内置的VCL,在Varnish 4.0+中,Varnish是否默认缓存404响应?
默认只会缓存以下状态码:
200: OK
203: Non-Authoritative Information
300: Multiple Choices
301: Moved Permanently
302: Moved Temporarily
304: Not modified
307: Temporary Redirect
410: Gone
404: Not Found
来源:http://book.varnish-software.com/4.0/chapters/VCL_Basics.html
我真的很惊讶我在任何地方都很难找到这个答案,但我找不到。
随着vcl_recv
等内置的VCL,在Varnish 4.0+中,Varnish是否默认缓存404响应?
默认只会缓存以下状态码:
200: OK
203: Non-Authoritative Information
300: Multiple Choices
301: Moved Permanently
302: Moved Temporarily
304: Not modified
307: Temporary Redirect
410: Gone
404: Not Found
来源:http://book.varnish-software.com/4.0/chapters/VCL_Basics.html