From e988f2f38db7e7b1c0bf858d3ce25746d2167612 Mon Sep 17 00:00:00 2001 From: franck cuny Date: Sat, 22 Jan 2011 10:26:40 +0100 Subject: update README --- README | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README b/README index bad02c5..54e00e4 100644 --- a/README +++ b/README @@ -27,6 +27,18 @@ DESCRIPTION enable "Plack::Middleware::ETag", file_etag => [qw/size/]; + cache_control + It's possible to add 'Cache-Control' header. + + enable "Plack::Middleware::ETag", cache_control => 1; + + Will add "Cache-Control: must-revalidate" to the headers. + + enable "Plack::Middleware::ETag", cache_control => [ 'must-revalidate', 'max-age=3600' ]; + + Will add "Cache-Control: must-revalidate, max-age=3600" to the + headers. + AUTHOR franck cuny -- cgit v1.2.3