Skip to content

Commit

Permalink
https://github.com/vegandthecity/server/issues/14
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed May 11, 2020
1 parent 46f5ee7 commit a0374ba
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
1 change: 1 addition & 0 deletions etc/varnish/default.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
# «Starting with Varnish 4.0, each VCL file must start by declaring its version with vcl <major>.<minor>; marker
# at the top of the file.» https://varnish-cache.org/docs/6.1/reference/vcl.html#description
vcl 4.0;
# 2020-05-11 https://varnish-cache.org/docs/6.1/reference/vcl.html#include-statement
include "magento.vcl";
17 changes: 10 additions & 7 deletions etc/varnish/magento.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,17 @@
# «Starting with Varnish 4.0, each VCL file must start by declaring its version with vcl <major>.<minor>; marker
# at the top of the file.» https://varnish-cache.org/docs/6.1/reference/vcl.html#description
vcl 4.0;
# 2020-05-11
# The `import` statement is used to load Varnish Modules (VMODs.)
# https://varnish-cache.org/docs/6.1/reference/vcl.html#import-statement
import std;
# 2020-05-11
# «An Access Control List (ACL) declaration creates and initialises a named access control list
# which can later be used to match client addresses.»
# https://varnish-cache.org/docs/6.1/reference/vcl.html#access-control-list-acl
acl purge {
"localhost";
}
# 2020-04-19 Dmitry Fedyuk https://www.upwork.com/fl/mage2pro
# «Varnish has a concept of "backend" or "origin" servers.
# A backend server is the server providing the content Varnish will accelerate.»
Expand Down Expand Up @@ -76,13 +86,6 @@ backend default {
.window = 10;
}
}
# 2020-05-11
# «An Access Control List (ACL) declaration creates and initialises a named access control list
# which can later be used to match client addresses.»
# https://varnish-cache.org/docs/6.1/reference/vcl.html#access-control-list-acl
acl purge {
"localhost";
}
# 2020-04-19 Dmitry Fedyuk https://www.upwork.com/fl/mage2pro
# «Called:
# *) at the beginning of a request,
Expand Down

0 comments on commit a0374ba

Please sign in to comment.