5

我真的很惊讶我在任何地方都找不到这个答案,但我做不到。

vcl_recvVarnish 4.0+等内置VCL ,Varnish是否默认缓存404响应?

4

1 回答 1

9

默认情况下仅缓存以下状态码:

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

于 2016-08-26T05:36:16.697 回答