From be1c7e50e1e8809ea56f2c9d472eccd8ffd73a97 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 04:57:58 +0200 Subject: Adding upstream version 1.44.3. Signed-off-by: Daniel Baumann --- .../libh2o/srcdoc/configure/expires_directives.mt | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 web/server/h2o/libh2o/srcdoc/configure/expires_directives.mt (limited to 'web/server/h2o/libh2o/srcdoc/configure/expires_directives.mt') diff --git a/web/server/h2o/libh2o/srcdoc/configure/expires_directives.mt b/web/server/h2o/libh2o/srcdoc/configure/expires_directives.mt new file mode 100644 index 00000000..a3b22f85 --- /dev/null +++ b/web/server/h2o/libh2o/srcdoc/configure/expires_directives.mt @@ -0,0 +1,32 @@ +? my $ctx = $main::context; +? $_mt->wrapper_file("wrapper.mt", "Configure", "Expires Directives")->(sub { + +

+This document describes the configuration directives of the expires handler. +

+ +{directive}->( + name => "expires", + levels => [ qw(global host path extension) ], + desc => <<'EOT', +An optional directive for setting the Cache-Control: max-age= header. +EOT +)->(sub { +?> + +{example}->('Set Cache-Control: max-age=86400', <<'EOT') +expires: 1 day +EOT +?> +

+You can also find an example that conditionally sets the header depending on the aspects of a request in Modifying the Response section of the Mruby directives documentation. +

+? }) + +? }) -- cgit v1.2.3