Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ziguzagu/perlbal-plugin-expires

Apache mod_expires for Perlbal web server
https://github.com/ziguzagu/perlbal-plugin-expires

cpan perl

Last synced: 29 days ago
JSON representation

Apache mod_expires for Perlbal web server

Awesome Lists containing this project

README

        

NAME
Perlbal::Plugin::Expires - Apache mod_expires for Perlbal web server

SYNOPSIS
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

DESCRIPTION
Perlbal::Plugin::Expires is the module to set Expires header to the
response of perlbal webserver the same way as Apache mode_expires.

CONFIGURATIONS
Expires [service] = plus ( )+

* 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

SEE ALSO
mod_expires

AUTHOR
Hiroshi Sakai

LICENSE
This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.