Add public to Cache-Control in CSS.pm & JS.pm
authorMarius Gavrilescu <marius@ieval.ro>
Tue, 4 Feb 2014 22:50:50 +0000 (00:50 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Tue, 4 Feb 2014 22:50:50 +0000 (00:50 +0200)
lib/Gruntmaster/Page/CSS.pm
lib/Gruntmaster/Page/JS.pm

index a3e227fb7b536eb52f5000338d39d35a65104749..0f4bf6a8193c88b2ee55f96d17285687670e0eaf 100644 (file)
@@ -15,7 +15,7 @@ sub generate{
        debug $logger => "theme is $theme";
        my $css = read_file "css/themes/$theme.css";
        $css .= read_file $_ for <css/*.css>;
-       [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]] }
index fa00293e52e622861206d31edeb87414e7253287..26b1be026c7068f2c6ff263148ff89cf07394cd0 100644 (file)
@@ -15,7 +15,7 @@ sub generate{
        debug $logger => "";
        my $js;
        $js .= read_file $_ for <js/*.js>;
-       [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]] }
This page took 0.011314 seconds and 4 git commands to generate.