diff options
Diffstat (limited to 'src/web/server/h2o/libh2o/srcdoc/configure/expires_directives.mt')
-rw-r--r-- | src/web/server/h2o/libh2o/srcdoc/configure/expires_directives.mt | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/web/server/h2o/libh2o/srcdoc/configure/expires_directives.mt b/src/web/server/h2o/libh2o/srcdoc/configure/expires_directives.mt deleted file mode 100644 index a3b22f853..000000000 --- a/src/web/server/h2o/libh2o/srcdoc/configure/expires_directives.mt +++ /dev/null @@ -1,32 +0,0 @@ -? my $ctx = $main::context; -? $_mt->wrapper_file("wrapper.mt", "Configure", "Expires Directives")->(sub { - -<p> -This document describes the configuration directives of the expires handler. -</p> - -<? -$ctx->{directive}->( - name => "expires", - levels => [ qw(global host path extension) ], - desc => <<'EOT', -An optional directive for setting the <code>Cache-Control: max-age=</code> header. -EOT -)->(sub { -?> -<ul> -<li>if the argument is <code>OFF</code> the feature is not used -<li>if the value is <code><i>NUMBER</i> <i>UNIT</i></code> then the header is set -<li>the units recognized are: <code>second</code>, <code>minute</code>, <code>hour</code>, <code>day</code>, <code>month</code>, <code>year</code> -<li> the units can also be in plural forms -</ul> -<?= $ctx->{example}->('Set <code>Cache-Control: max-age=86400</code>', <<'EOT') -expires: 1 day -EOT -?> -<p> -You can also find an example that conditionally sets the header depending on the aspects of a request in <a href="configure/mruby.html#modifying-response">Modifying the Response section of the Mruby directives documentation</a>. -</p> -? }) - -? }) |