谁能给一个详细的解释这个?
Can anyone give a detailed explanation for this?
推荐答案本使用Apache mod_headers中追加值用户代理的Vary HTTP标头,但前提是不要-变化环境未设置。
This uses Apache mod_headers to append the value "User-Agent" to the Vary HTTP header, but only if the dont-vary environment is not set.
但什么是Vary头部?请参见 RFC2616 它说
But what is the Vary header? See RFC2616 which says
该因人而异字段值指示集合 请求头字段,充分 确定,而响应是 新鲜,是否高速缓冲存储器允许 用该响应回复 没有后续请求 重新验证
The Vary field value indicates the set of request-header fields that fully determines, while the response is fresh, whether a cache is permitted to use the response to reply to a subsequent request without revalidation
如果您交付取决于User-Agent头不同的HTML标记,你可以使用在User-Agent一个Vary头部它确保缓存代理没有起到用于浏览器X要浏览器Ÿ内容。
If you deliver different HTML markup depending on the User-Agent header, you might use a Vary header with User-Agent in it to ensure that a caching proxy didn't serve content intended for browser X to browser Y.
更多推荐
是什么在Apache中这个配置是什么意思?
发布评论