Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AnSwErYWJ opened this issue Feb 8, 2017 · 2 comments
Open

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

AnSwErYWJ opened this issue Feb 8, 2017 · 2 comments

Comments

@AnSwErYWJ
Copy link
Contributor

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

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

yyyiue commented Jul 2, 2018

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

@Valkierja
Copy link

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

感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants