From c30cee55ddec71f1512b85c783a4df1ce7040ee2 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 25 Feb 2013 18:18:05 +0100 Subject: [PATCH] Send ETag and Expires headers --- src/lib/Hydra.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/Hydra.pm b/src/lib/Hydra.pm index f800adb8..c43cf560 100644 --- a/src/lib/Hydra.pm +++ b/src/lib/Hydra.pm @@ -40,6 +40,10 @@ __PACKAGE__->config( }, }, }, + 'Plugin::Static::Simple' => { + send_etag => 1, + expires => 3600 + }, 'View::JSON' => { expose_stash => qr/^json/, },