Plack::Middleware::Expires(3pm) User Contributed Perl Documentation Plack::Middleware::Expires(3pm)NAME
Plack::Middleware::Expires - mod_expires for plack
SYNOPSIS
use Plack::Builder;
builder {
enable 'Expires',
content_type => qr!^image/!i,
expires => 'access plus 3 months';
$app;
}
DESCRIPTION
Plack::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: Expires works only for successful response and If exists Expires
HTTP header already, this middleware does not override.
CONFIGURATIONS
content_type
content_type => qr!^image!,
content_type => 'text/css',
content_type => [ 'text/css', 'application/javascript', qr!^image/! ]
Content-Type header to apply Expires
Expires
Same format as the Apache mod_expires
expires => 'M3600' # last_modified + 1 hour
expires => 'A86400' # access + 1 day
expires => 'modification plus 3 years 3 month 3 day'
expires => 'access plus 3 days'
AUTHOR
Masahiro Nagano <kazeburo {at} gmail.com>
SEE ALSO
<http://httpd.apache.org/docs/2.2/en/mod/mod_expires.html>
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2010-11-11 Plack::Middleware::Expires(3pm)
Check Out this Related Man Page
Plack::Middleware::Recursive(3pm) User Contributed Perl Documentation Plack::Middleware::Recursive(3pm)NAME
Plack::Middleware::Recursive - Allows PSGI apps to include or forward requests recursively
SYNOPSIS
# with Builder
enable "Recursive";
# in apps
my $res = $env->{'plack.recursive.include'}->("/new_path");
# Or, use exceptions
my $app = sub {
# ...
Plack::Recursive::ForwardRequest->throw("/new_path");
};
DESCRIPTION
Plack::Middleware::Recursive allows PSGI applications to recursively include or forward requests to other paths. Applications can make use
of callbacks stored in "$env->{'plack.recursive.include'}" to include another path to get the response (whether it's an array ref or a code
ref depending on your application), or throw an exception Plack::Recursive::ForwardRequest anywhere in the code to forward the current
request (i.e. abort the current and redo the request).
EXCEPTIONS
This middleware passes through unknown exceptions to the outside middleware stack, so if you use this middleware with other exception
handlers such as Plack::Middleware::StackTrace or Plack::Middleware::HTTPExceptions, be sure to wrap this so Plack::Middleware::Recursive
gets as inner as possible.
AUTHORS
Tatsuhiko Miyagawa
Masahiro Honma
SEE ALSO
Plack Plack::Middleware::HTTPExceptions
The idea, code and interface are stolen from Rack::Recursive and paste.recursive.
perl v5.14.2 2011-06-22 Plack::Middleware::Recursive(3pm)
Hi Experts, :confused:
I need help in one of my bit complicated script (for me complicated for experts like you might be simple).
I have 100+ Middleware servers and 200+ DB servers and 200+ application servers in my environment. What I’m looking is I have a script ready sitting on one JUMP... (12 Replies)
I want to know if a server has J2EE application server installed, a webserver or any other middleware, is there a command to output a list or something like that.
Thak you (1 Reply)
Hi Experts,
i would like to know the description of the following:
Minimum: 0
Maximum: 90
Warning: 7
Inactive: -1
Last Change: Never
Password Expires: Never
Password Inactive: Never
Account Expires: Never
Does this means that... (2 Replies)
Good evening:
I need your help please, I am new in Unix/Linux apps like middleware
Thare are thousands of documentation about middleware stuff but i would like to have a broader understanding about middleware apps, so i ask you the following questions:
1. In an Enterprise what i am working... (2 Replies)
Next in the pipeline, thinking I will work on postbit (the core of the posts) and try to get Bootstrap and badges working in postbit and not break the quick editors in the post.
Note, I had to turn off the scrollbars in postbit for now because when I turn them on, it breaks the quick editor in... (11 Replies)