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 752b710 commit 64916c0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions etc/varnish/magento.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,19 @@ backend default {
# «Called after the response headers have been successfully retrieved from the backend.»
# https://varnish-cache.org/docs/6.4/users-guide/vcl-built-in-subs.html#vcl-backend-response
sub vcl_backend_response {
# 2020-05-11
# 1) «The response received from the backend, one cache misses, the store object is built from `beresp`.
# beresp
# Type: HTTP
# Readable from: `vcl_backend_response`, `vcl_backend_error`.
# The entire backend response HTTP data structure, useful as argument to VMOD functions.»
# https://varnish-cache.org/docs/6.1/reference/vcl.html#beresp
# 2) «beresp.grace
# Set to a period to enable grace.
# Type: DURATION
# Readable from: `vcl_backend_response`, `vcl_backend_error`.
# Writable from: `vcl_backend_response`, `vcl_backend_error`.»
# https://varnish-cache.org/docs/6.1/reference/vcl.html#beresp
set beresp.grace = 3d;
if (beresp.http.content-type ~ "text") {
set beresp.do_esi = true;
Expand Down

0 comments on commit 64916c0

Please sign in to comment.