Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
274df859
Commit
274df859
authored
Aug 28, 2014
by
Federico G. Schwindt
Committed by
Lasse Karstensen
Sep 22, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update names and examples for V4
parent
bb29cda3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
gzip.rst
doc/sphinx/phk/gzip.rst
+9
-9
No files found.
doc/sphinx/phk/gzip.rst
View file @
274df859
...
...
@@ -55,9 +55,9 @@ Varnish will not gzip any content on its own (but see below), we trust
the backend to know what content can be sensibly gzip'ed (html) and what
can not (jpeg)
If in vcl_
fetch{} we find out that we are trying to deliver a gzip'ed object
to a client that has not indicated willingness to receive gzip, we will
ungzip the object during deliver.
If in vcl_
backend_response{} we find out that we are trying to deliver a
gzip'ed object to a client that has not indicated willingness to receive
gzip, we will
ungzip the object during deliver.
Tuning, tweaking and frobbing
-----------------------------
...
...
@@ -74,8 +74,8 @@ gunzip the object before delivering to the client.
In vcl_miss{} you can remove the "Accept-Encoding: gzip" header, if you
do not want the backend to gzip this object.
In vcl_
fetch{} two new variables allow you to modify the gzip-ness of
objects during fetch:
In vcl_
backend_response{} two new variables allow you to modify the
gzip-ness of
objects during fetch:
set beresp.do_gunzip = true;
...
...
@@ -91,8 +91,8 @@ Remember that a lot of content types cannot sensibly be gziped, most
notably compressed image formats like jpeg, png and similar, so a
typical use would be::
sub vcl_
fetch
{
if (req.url ~ "html$") {
sub vcl_
backend_response
{
if (
be
req.url ~ "html$") {
set beresp.do_gzip = true;
}
}
...
...
@@ -102,7 +102,7 @@ GZIP and ESI
First, note the new syntax for activating ESI::
sub vcl_
fetch
{
sub vcl_
backend_response
{
set beresp.do_esi = true;
}
...
...
@@ -155,7 +155,7 @@ compression efficiency, you should::
}
}
sub vcl_
fetch
{
sub vcl_
backend_response
{
if (object needs ESI processing) {
set beresp.do_esi = true;
set beresp.do_gzip = true;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment