开发者

How to bypass a Proxy Server when needed?

I setup a proxy server in my local machine for a testing purpose, in which I request for a web page which is constantly being updated via a back end TCP server. But since the proxy is caching the web page, it is not being upd开发者_运维百科ated properly. Instead I get the cached page. Is there a way to bypass the proxy server other than adjusting the settings of it???

Thank You!!!


You're asking the wrong question, and are close to using a chocolate-covered banana. The right question to ask is why your proxy is retaining and passing along stale data. And the answer to that is very probably that your content HTTP server isn't properly generating ETag: or Last-Modified: headers or properly responding to back-end validation requests from the proxy HTTP server. Fix your content HTTP server so that it properly informs the proxy HTTP server whether and when cached data are stale. There's a whole section of RFC2616, §13, devoted to how caching is handled in the protocol.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜