Skip to content

Commit

Permalink
Include preset config after the default vcl_recv
Browse files Browse the repository at this point in the history
  • Loading branch information
csandanov committed Jan 18, 2019
1 parent 0c4aa05 commit e5c91eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions templates/default.vcl.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,16 @@ sub vcl_recv {
}
}

include "preset.vcl";

include "includes/purge.vcl";
include "includes/static.vcl";
include "includes/mobile.vcl";

# See https://book.varnish-software.com/4.0/chapters/VCL_Basics.html

include "defaults/vcl_recv.vcl";

include "preset.vcl";

include "defaults/vcl_hash.vcl";
include "defaults/vcl_pipe.vcl";
include "defaults/vcl_backend_response.vcl";
Expand Down
2 changes: 1 addition & 1 deletion tests/basic/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ varnish curl --header "X-Forwarded-For: ${us_ip}" -s "localhost:6081" | grep -q
varnish make flush -f /usr/local/bin/actions.mk
echo "OK"

echo -n "Checking varnish VC-KEY cookies"
echo -n "Checking varnish VC-KEY cookies... "
docker-compose exec php sh -c 'echo "<?php echo(\"Hello World\");" > /var/www/html/index.php'
varnish sh -c 'curl -sI -b "VCKEYinvalid=123" localhost:6081 | grep -q "X-VC-Cache: MISS"'
varnish sh -c 'curl -sI -b "VCKEYinvalid=123" localhost:6081 | grep -q "X-VC-Cache: MISS"'
Expand Down

0 comments on commit e5c91eb

Please sign in to comment.