summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
Diffstat (limited to 'README')
-rw-r--r--README12
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>