Will proxies cache HTTP Responses when authentication is provided?

自闭症网瘾萝莉.ら 提交于 2019-12-08 17:13:30

问题


Given a URI which has headers for caching properly configured.

If two users make a request to the same URI but provide two different sets of credentials, will a proxy cache the response per user+URI, or per URI, or not at all?


回答1:


The response will only be used for other users if the Cache-Control response header contains the public directive. Apart from that, the proxy must not cache a response to an authorized request.

Read the section Authorization of the HTTP 1.1 standard for all the details.



来源:https://stackoverflow.com/questions/1177668/will-proxies-cache-http-responses-when-authentication-is-provided

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!