File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
tests/Functional/Fixtures/varnish-3 Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -124,13 +124,13 @@ to the ``recv`` and the ``deliver`` methods:
124
124
125
125
.. literalinclude :: ../tests/Functional/Fixtures/varnish-3/user_context.vcl
126
126
:language: varnish3
127
- :lines: 1-28, 32 -
127
+ :lines: 1-27, 31 -
128
128
:linenos:
129
129
130
130
.. sidebar :: Caching User Specific Content
131
131
132
132
By default, Varnish does not check for cached data as soon as the request
133
- has a ``Cookie `` or ``Authorization `` header, as per the `builtin VCL `_
133
+ has a ``Cookie `` or ``Authorization `` header, as per the `builtin VCL `_
134
134
(for Varnish 3, see `default VCL `_). For the user context, you make Varnish
135
135
cache even when there are credentials present.
136
136
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ sub vcl_recv {
16
16
&& (req.http.cookie || req.http.authorization )
17
17
&& (req.request == " GET" || req.request == " HEAD" )
18
18
) {
19
- set req.http.x-fos-original-url = req.url ;
20
19
# Backup accept header, if set
21
20
if (req.http.accept ) {
22
21
set req.http.x-fos-original-accept = req.http.accept ;
@@ -26,7 +25,7 @@ sub vcl_recv {
26
25
# Backup original URL
27
26
set req.http.x-fos-original-url = req.url ;
28
27
set req.url = " /user_context_hash.php" ;
29
-
28
+
30
29
# For functional tests
31
30
call user_context_hash_url;
32
31
You can’t perform that action at this time.
0 commit comments