提供身份验证后,代理会缓存HTTP响应吗? [英] Will proxies cache HTTP Responses when authentication is provided?

查看:68
本文介绍了提供身份验证后,代理会缓存HTTP响应吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

给出一个具有正确配置了缓存头的URI。

Given a URI which has headers for caching properly configured.

如果两个用户向同一个URI请求但提供了两组不同的凭据,则将代理

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?

推荐答案

该响应仅用于其他用户+ URI,还是根本不响应?用户,如果 Cache-Control 响应标头包含 public 指令。除此之外,代理不得缓存对授权请求的响应。

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.

阅读部分HTTP 1.1标准的授权以获取所有详细信息。

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

这篇关于提供身份验证后,代理会缓存HTTP响应吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆