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]] }
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]] }