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
8db11eae
Commit
8db11eae
authored
Mar 06, 2017
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update docs in spots to use the hit-for-miss and -pass terminology.
parent
17678355
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
7 deletions
+14
-7
increasing-your-hitrate.rst
doc/sphinx/users-guide/increasing-your-hitrate.rst
+1
-1
vcl-built-in-subs.rst
doc/sphinx/users-guide/vcl-built-in-subs.rst
+11
-4
vcl-example-manipulating-responses.rst
...sphinx/users-guide/vcl-example-manipulating-responses.rst
+2
-2
No files found.
doc/sphinx/users-guide/increasing-your-hitrate.rst
View file @
8db11eae
...
...
@@ -220,7 +220,7 @@ Cookies coming from the backend
If your backend server sets a cookie using the 'Set-Cookie' header
Varnish will not cache the page when using the default configuration.
A `hit-for-
pa
ss` object (see :ref:`user-guide-vcl_actions`) is
A `hit-for-
mi
ss` object (see :ref:`user-guide-vcl_actions`) is
created. So, if the backend server acts silly and sets unwanted
cookies just unset the 'Set-Cookie' header and all should be fine.
...
...
doc/sphinx/users-guide/vcl-built-in-subs.rst
View file @
8db11eae
...
...
@@ -178,10 +178,17 @@ The `vcl_hash` subroutine may only terminate with calling ``return(lookup)``:
Look up the object in cache.
Control passes to :ref:`vcl_purge` when coming from a ``purge``
return in `vcl_recv`.
Otherwise control passes to :ref:`vcl_hit`, :ref:`vcl_miss` or
:ref:`vcl_pass` if the cache lookup result was a hit, a miss or hit
on a hit-for-pass object (object with ``obj.uncacheable ==
true``), respectively.
Otherwise control passes to the next subroutine depending on the result of
the cache lookup:
* a hit: pass to :ref:`vcl_hit`
* a miss or a hit on a hit-for-miss object (an object with
``obj.uncacheable == true``): pass to :ref:`vcl_miss`
* a hit on a hit-for-pass object (for which ``pass(DURATION)`` had been
previously returned from ``vcl_backend_response``): pass to
:ref:`vcl_pass`
.. _vcl_purge:
...
...
doc/sphinx/users-guide/vcl-example-manipulating-responses.rst
View file @
8db11eae
...
...
@@ -15,5 +15,5 @@ matches certain criteria::
We also remove any Set-Cookie headers in order to avoid
a `hit-for-pass`
object to be created
. See :ref:`user-guide-vcl_actions`.
We also remove any Set-Cookie headers in order to avoid
creation of a
`hit-for-miss` object
. See :ref:`user-guide-vcl_actions`.
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