Skip to content

Commit fc66a69

Browse files
committed
VCL import is global, not per file
1 parent 0438896 commit fc66a69

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

resources/config/varnish/fos_custom_ttl.vcl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
* file that was distributed with this source code.
88
*/
99

10-
import std;
11-
1210
/**
1311
* Read a custom TTL header for the time to live information, to be used
1412
* instead of s-maxage.
13+
*
14+
* This needs an `import std;` in your main VCL. If you do not already import
15+
* the standard vmod, you need to add it there.
1516
*/
1617
sub fos_custom_ttl_backend_response {
1718
if (beresp.http.X-Reverse-Proxy-TTL) {

0 commit comments

Comments
 (0)