diff options
author | franck cuny <franck@lumberjaph.net> | 2011-01-22 10:26:40 +0100 |
---|---|---|
committer | franck cuny <franck@lumberjaph.net> | 2011-01-22 10:26:40 +0100 |
commit | e988f2f38db7e7b1c0bf858d3ce25746d2167612 (patch) | |
tree | d9355f3aac1c8a0e85fa7bf87f8b6323b33ede51 | |
parent | bump version (diff) | |
download | plack-middleware-etag-e988f2f38db7e7b1c0bf858d3ce25746d2167612.tar.gz |
update README
-rw-r--r-- | README | 12 |
1 files changed, 12 insertions, 0 deletions
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 <franck@lumberjaph.net> |