Αριστοτέλης Παγκαλτζής > Plack-Middleware-NeverExpire > Plack::Middleware::NeverExpire

Download:
Plack-Middleware-NeverExpire-1.004.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 1.004   Source  

NAME ^

Plack::Middleware::NeverExpire - set expiration headers far in the future

VERSION ^

version 1.004

SYNOPSIS ^

 # in app.psgi
 use Plack::Builder;
 
 builder {
     enable_if { $_[0]{'PATH_INFO'} =~ m!^/static/! } 'NeverExpire';
     $app;
 };

DESCRIPTION ^

This middleware adds headers to a response that allow proxies and browsers to cache them for an effectively unlimited time. It is meant to be used in conjunction with the Conditional middleware.

SEE ALSO ^

AUTHOR ^

Aristotle Pagaltzis <pagaltzis@gmx.de>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013 by Aristotle Pagaltzis.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: