WebBench icon indicating copy to clipboard operation
WebBench copied to clipboard

为什么一定要保证`proxyhost!=NULL`

Open AnSwErYWJ opened this issue 8 years ago • 2 comments

为什么一定要保证proxyhost!=NULL

if(force_reload && proxyhost!=NULL)
  {
	  strcat(request,"Pragma: no-cache\r\n");
  }

AnSwErYWJ avatar Feb 08 '17 03:02 AnSwErYWJ

因为pragma: no-cache这个header只在请求代理服务器的时候才需要,意思是告诉代理服务器必须向源服务器请求资源,否则代理服务器直接返回缓存的资源,达不到压测的目的。

yyyiue avatar Jul 02 '18 09:07 yyyiue

因为pragma: no-cache这个header只在请求代理服务器的时候才需要,意思是告诉代理服务器必须向源服务器请求资源,否则代理服务器直接返回缓存的资源,达不到压测的目的。

感谢

Valkierja avatar Aug 24 '21 19:08 Valkierja