We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0a33d52 + fc66a69 commit 6c2c567Copy full SHA for 6c2c567
resources/config/varnish/fos_custom_ttl.vcl
@@ -7,11 +7,12 @@
7
* file that was distributed with this source code.
8
*/
9
10
-import std;
11
-
12
/**
13
* Read a custom TTL header for the time to live information, to be used
14
* instead of s-maxage.
+ *
+ * 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.
16
17
sub fos_custom_ttl_backend_response {
18
if (beresp.http.X-Reverse-Proxy-TTL) {
tests/Functional/Fixtures/varnish/custom_ttl.vcl
@@ -1,5 +1,7 @@
1
vcl 4.0;
2
3
+import std;
4
+
5
include "../../../../resources/config/varnish/fos_debug.vcl";
6
include "../../../../resources/config/varnish/fos_custom_ttl.vcl";
0 commit comments