我已经从我的清漆缓存中排除了这样的网址
if (req.url ~ "^/folder_name/") {
return (pass);
}
但是当我访问 curl -I http://ip/folder_name时,我仍然看到以下响应
HTTP/1.1 301 Moved Permanently
Date: Mon, 04 Jul 2016 08:48:46 GMT
Server: Apache/2.2.15 (CentOS)
Location: http://ip/folder_name/
Content-Length: 319
Content-Type: text/html; charset=iso-8859-1
X-Varnish: 294958
Age: 0
Via: 1.1 varnish-v4
Connection: keep-alive
谁能告诉我我做错了什么,我需要排除“所有以/folder_name开头的url”缓存在varnisg中