Skip to content

Commit 161e265

Browse files
committed
varnish 4
1 parent 5bc6592 commit 161e265

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

doc/varnish-configuration.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,8 @@ inline C enabled: ``-p vcc_allow_inline_c=on``. Then add the following to
327327
328328
include "path-to-config/varnish-4/fos_custom_ttl.vcl";
329329
330-
sub vcl_fetch {
331-
call fos_custom_ttl_fetch;
330+
sub vcl_backend_response {
331+
call fos_custom_ttl_backend_response;
332332
}
333333
334334
.. code-block:: varnish3

resources/config/varnish-4/fos_custom_ttl.vcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Read a custom TTL header for the time to live information, to be used
1212
* instead of s-maxage.
1313
*/
14-
sub fos_custom_ttl_fetch {
14+
sub fos_custom_ttl_backend_response {
1515
if (beresp.http.X-Reverse-Proxy-TTL) {
1616
/*
1717
* Note that there is a ``beresp.ttl`` field in VCL but unfortunately

tests/Functional/Fixtures/varnish-4/custom_ttl.vcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ sub vcl_deliver {
1212
call fos_debug_deliver;
1313
}
1414

15-
sub vcl_fetch {
16-
call fos_custom_ttl_fetch;
15+
sub vcl_backend_response {
16+
call fos_custom_ttl_backend_response;
1717
}

0 commit comments

Comments
 (0)