Perlbal::Plugin::Expires - Apache mod_expires for Perlbal web server
LOAD Expires CREATE SERVICE web SET role = web_server SET listen = 127.0.0.1:8000 SET docroot = /path/to/docs SET plugins = Expires Expires default = access plus 1 day 12 hours Expires image/gif = access plus 10 years ENABLE web
Perlbal::Plugin::Expires is the module to set Expires header to the response of perlbal webserver the same way as Apache mode_expires.
Expires [service] <type> = <base> plus (<num> <unit>)+
service
You can specify service name explicitly to apply expires. Default is last created service.
type
Content-Type. Supported MIME Types on Perlbal web server are listed in $Perlbal::ClientHTTPBase::MimeType.
base
access, now (same as access) or modification.
(num unit)+
Datetime string. num should be integer value and unit is one of
* years * months * weeks * days * hours * minutes * seconds
Last 's' can be omiited.
e.g)
* 10 years * 7 days 1 hour 30 minutes 45 seconds
mod_expires
Hiroshi Sakai <ziguzagu@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Perlbal::Plugin::Expires, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perlbal::Plugin::Expires
CPAN shell
perl -MCPAN -e shell install Perlbal::Plugin::Expires
For more information on module installation, please visit the detailed CPAN module installation guide.