是什么在Apache中这个配置是什么意思?

编程入门 行业动态 更新时间:2024-10-27 22:21:29
本文介绍了是什么在Apache中这个配置是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 Header append Vary User-Agent env=!dont-vary

谁能给一个详细的解释这个?

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中这个配置是什么意思?

本文发布于:2023-11-01 19:43:08,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1550230.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Apache

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!