diff options
| -rw-r--r-- | README | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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> |
