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
bd10b8bc
Commit
bd10b8bc
authored
Nov 27, 2015
by
Federico G. Schwindt
Committed by
Lasse Karstensen
Jan 13, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use req as intended
parent
cb1e0b5a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
gzip.rst
doc/sphinx/phk/gzip.rst
+1
-1
vmod.rst
doc/sphinx/reference/vmod.rst
+1
-1
devicedetection.rst
doc/sphinx/users-guide/devicedetection.rst
+2
-2
No files found.
doc/sphinx/phk/gzip.rst
View file @
bd10b8bc
...
...
@@ -151,7 +151,7 @@ compression efficiency, you should::
sub vcl_miss {
if (object needs ESI processing) {
unset
be
req.http.accept-encoding;
unset req.http.accept-encoding;
}
}
...
...
doc/sphinx/reference/vmod.rst
View file @
bd10b8bc
...
...
@@ -231,7 +231,7 @@ STRING_LIST
Consider this contrived example::
set
be
req.http.foo = std.toupper(req.http.foo + req.http.bar);
set req.http.foo = std.toupper(req.http.foo + req.http.bar);
The usual way to do this, would be be to allocate memory for
the concatenated string, then pass that to ``toupper()`` which in
...
...
doc/sphinx/users-guide/devicedetection.rst
View file @
bd10b8bc
...
...
@@ -127,8 +127,8 @@ VCL::
}
# override the header before it is sent to the backend
sub vcl_miss { if (req.http.X-UA-Device) { set
be
req.http.User-Agent = req.http.X-UA-Device; } }
sub vcl_pass { if (req.http.X-UA-Device) { set
be
req.http.User-Agent = req.http.X-UA-Device; } }
sub vcl_miss { if (req.http.X-UA-Device) { set req.http.User-Agent = req.http.X-UA-Device; } }
sub vcl_pass { if (req.http.X-UA-Device) { set req.http.User-Agent = req.http.X-UA-Device; } }
# standard Vary handling code from previous examples.
sub vcl_backend_response {
...
...
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