Commit 7cb2eaab authored by Per Andreas Buer's avatar Per Andreas Buer

on vary and user agents

git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4880 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 1b188897
...@@ -221,6 +221,17 @@ following VCL code will normalize the Accept-Encoding headers.:: ...@@ -221,6 +221,17 @@ following VCL code will normalize the Accept-Encoding headers.::
The code sets the Accept-Encoding header from the client to either The code sets the Accept-Encoding header from the client to either
gzip, deflate with a preference for gzip. gzip, deflate with a preference for gzip.
Pitfall - Vary: User-Agent
~~~~~~~~~~~~~~~~~~~~~~~~~~
Some applications or application servers send *Vary: User-Agent* along
with their content. This instructs Varnish to cache a separate copy
for every variation of User-Agent there is. There are plenty. Even a
single patchlevel of the same browser will generate at least 10
different User-Agent headers based just on what operating system they
are running. So if you need to Vary based on User-Agent be sure to
normalize the header or your hit rate will suffer badly.
.. _tutorial-increasing_your_hitrate-pragma: .. _tutorial-increasing_your_hitrate-pragma:
Pragma Pragma
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment