? 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.

? }) ? })