File tree Expand file tree Collapse file tree 5 files changed +28
-6
lines changed Expand file tree Collapse file tree 5 files changed +28
-6
lines changed Original file line number Diff line number Diff line change @@ -211,6 +211,7 @@ To enable support add the following to ``your_varnish.vcl``:
211
211
.. code-block :: varnish4
212
212
213
213
include "path-to-config/varnish-4/fos_user_context.vcl";
214
+ include "path-to-config/varnish-4/fos_user_context_url.vcl";
214
215
215
216
sub vcl_recv {
216
217
call fos_user_context_recv;
@@ -227,6 +228,7 @@ To enable support add the following to ``your_varnish.vcl``:
227
228
.. code-block :: varnish3
228
229
229
230
include "path-to-config/varnish-3/fos_user_context.vcl";
231
+ include "path-to-config/varnish-4/fos_user_context_url.vcl";
230
232
231
233
sub vcl_recv {
232
234
call fos_user_context_recv;
Original file line number Diff line number Diff line change @@ -33,9 +33,7 @@ sub fos_user_context_recv {
33
33
34
34
# Backup original URL
35
35
set req.http.X-Fos-Original-Url = req.url ;
36
- set req.url = " /_fos_user_context_hash" ;
37
-
38
- # For functional tests
36
+
39
37
call user_context_hash_url;
40
38
41
39
# Force the lookup, the backend must tell not to cache or vary on all
Original file line number Diff line number Diff line change
1
+ /*
2
+ * This file is part of the FOSHttpCache package.
3
+ *
4
+ * (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>
5
+ *
6
+ * For the full copyright and license information, please view the LICENSE
7
+ * file that was distributed with this source code.
8
+ */
9
+
10
+ sub user_context_hash_url {
11
+ set req.url = " /_fos_user_context_hash" ;
12
+ }
Original file line number Diff line number Diff line change @@ -33,9 +33,7 @@ sub fos_user_context_recv {
33
33
34
34
# Backup original URL
35
35
set req.http.X-Fos-Original-Url = req.url ;
36
- set req.url = " /_fos_user_context_hash" ;
37
-
38
- # For functional tests
36
+
39
37
call user_context_hash_url;
40
38
41
39
# Force the lookup, the backend must tell not to cache or vary on all
Original file line number Diff line number Diff line change
1
+ /*
2
+ * This file is part of the FOSHttpCache package.
3
+ *
4
+ * (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>
5
+ *
6
+ * For the full copyright and license information, please view the LICENSE
7
+ * file that was distributed with this source code.
8
+ */
9
+
10
+ sub user_context_hash_url {
11
+ set req.url = " /_fos_user_context_hash" ;
12
+ }
You can’t perform that action at this time.
0 commit comments