|
NAMEPlack::Middleware::Expires - mod_expires for plack SYNOPSIS use Plack::Builder;
builder {
enable 'Expires',
content_type => qr!^image/!i,
expires => 'access plus 3 months';
$app;
}
DESCRIPTIONPlack::Middleware::Expires is Apache's mod_expires for Plack. This middleware controls the setting of Expires HTTP header and the max-age directive of the Cache-Control HTTP header in server responses. Note:
CONFIGURATIONS
AUTHORMasahiro Nagano <kazeburo {at} gmail.com> SEE ALSO<http://httpd.apache.org/docs/2.2/en/mod/mod_expires.html> LICENSEThis library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|