Skip to content

Commit

Permalink
Merge pull request #162 from EmersonPrado/Issue_122_beresp
Browse files Browse the repository at this point in the history
[Issue #122] Add prepend and append sections for sub vcl_backend_response
  • Loading branch information
maxchk authored Jan 3, 2018
2 parents de45880 + 41e342f commit 69aa911
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions templates/varnish4-vcl.erb
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ sub vcl_backend_response {
<%- if @functions['vcl_backend_response'] -%>
<%= @functions.delete('vcl_backend_response') %>
<%- else -%>
<%- if @functions['vcl_beresp_prepend'] -%>
<%= @functions.delete('vcl_beresp_prepend') %>
<%- end -%>
<%- if @defaultgrace -%>
# Default grace period
set bereq.grace = <%= @defaultgrace %>;
Expand Down Expand Up @@ -223,6 +226,9 @@ sub vcl_backend_response {
<%- if @honor_backend_ttl -%>
}
<%- end -%>
<%- if @functions['vcl_beresp_append'] -%>
<%= @functions.delete('vcl_beresp_append') %>
<%- end -%>
<%- end -%>
}

Expand Down

0 comments on commit 69aa911

Please sign in to comment.