From eac599be8b36a2a10e34942b3cdcaeac269cf4ef Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Wed, 5 Feb 2014 00:50:50 +0200 Subject: [PATCH] Add public to Cache-Control in CSS.pm & JS.pm --- lib/Gruntmaster/Page/CSS.pm | 2 +- lib/Gruntmaster/Page/JS.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Gruntmaster/Page/CSS.pm b/lib/Gruntmaster/Page/CSS.pm index a3e227f..0f4bf6a 100644 --- a/lib/Gruntmaster/Page/CSS.pm +++ b/lib/Gruntmaster/Page/CSS.pm @@ -15,7 +15,7 @@ sub generate{ debug $logger => "theme is $theme"; my $css = read_file "css/themes/$theme.css"; $css .= read_file $_ for ; - [200, ['Content-Type' => 'text/css', 'Cache-Control' => 'max-age=604800'], [minify $css] ] + [200, ['Content-Type' => 'text/css', 'Cache-Control' => 'public, max-age=604800'], [minify $css] ] } sub variants{ [[css => 1, 'text/css', undef, undef, undef, undef]] } diff --git a/lib/Gruntmaster/Page/JS.pm b/lib/Gruntmaster/Page/JS.pm index fa00293..26b1be0 100644 --- a/lib/Gruntmaster/Page/JS.pm +++ b/lib/Gruntmaster/Page/JS.pm @@ -15,7 +15,7 @@ sub generate{ debug $logger => ""; my $js; $js .= read_file $_ for ; - [200, ['Content-Type' => 'application/javascript', 'Cache-Control' => 'max-age=604800'], [$js] ] + [200, ['Content-Type' => 'application/javascript', 'Cache-Control' => 'public, max-age=604800'], [$js] ] } sub variants{ [[js => 1, 'application/javascript', undef, undef, undef, undef]] } -- 2.39.2