SSL support

Dag-Erling Smørgrav des at linpro.no
Wed Mar 12 17:54:33 CET 2008


Audun Ytterdal <ay at vg.no> writes:
> Dag-Erling Smørgrav wrote:
> > That was a wishlist item, not a promised feature.  However, Varnish 2.0
> > supports Vary, so if can enable compression on your backend, it will
> > "just work" - but DO NOT UNDER ANY CIRCUMSTANCES use the sample
> > configuration at the top of Apache's mod_deflate documentation, as it
> > will effectively make every compressable document uncacheable.
>
> You mean
>
> "AddOutputFilterByType DEFLATE text/html text/plain text/xml"
>
> Why will that make documents uncacheable?

No, that part is fine.  I was referring to the "Compress everything
except images" example right below it.

> Would be sad for non-gzipable browser, but that would be fixed by
>
> "Header append Vary User-Agent"

Absolutely not.  This will force Varnish to cache a separate copy of the
document for every single User-Agent string it encounters.

Browsers that do not support gzip or deflate do not need special
treatment: they do not send Accept-Encoding: and will therefore get an
uncompressed version of the page.

The only browsers that advertise gzip / deflate support but do not
actually support it (and therefore need the BrowserMatch rules) are
early versions of Netscape 4.  According to thecounter.com's December
2007 statistics, Netscape 4's market share is 0.00067 - less than one in
one thousand.

DES
-- 
Dag-Erling Smørgrav
Senior Software Developer
Linpro AS - www.linpro.no



More information about the varnish-dev mailing list