Django Book 翻译
菜单>:
TOC
返回
原文:
This tells upstream caches to vary on *both* , which means each combination of user-agent and cookie will get its own cache value. For example, a request with the user-agent ``Mozilla`` and the cookie value ``foo=bar`` will be considered different from a request with the user-agent ``Mozilla`` and the cookie value ``foo=ham`` .
翻译:
该段代码通知上游缓存对 *两者* 都进行不同操作,也就是说 user-agent 和 cookie 的每种组合都应获取自己的缓存值。举例来说,使用 ``Mozilla`` 作为 user-agent 而 ``foo=bar`` 作为 cookie 值的请求应该和使用 ``Mozilla`` 作为 user-agent 而 ``foo=ham`` 的请求应该被视为不同请求。
备注:
译者: