是什么在Apache中这个配置是什么意思? [英] what does this configuration in apache mean?

查看:272
本文介绍了是什么在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中这个配置是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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