]> iEval git - gruntmaster-page.git/blobdiff - lib/Gruntmaster/Page/CSS.pm
Import some changes from the mindcoding branch
[gruntmaster-page.git] / lib / Gruntmaster / Page / CSS.pm
index 25b613777acc737b295d544bdbe7b0452ef2cec3..912e948a03600febf1f189a3dc3fe9126d2c389d 100644 (file)
@@ -1,13 +1,6 @@
 package Gruntmaster::Page::CSS;
 
-use 5.014000;
-use strict;
-use warnings;
 use Gruntmaster::Page::Base;
-our @ISA = qw/Gruntmaster::Page::Base/;
-our $VERSION = '0.001';
-
-use File::Slurp qw/read_file/;
 use CSS::Minifier::XS qw/minify/;
 
 sub generate{
@@ -16,9 +9,7 @@ sub generate{
        return [404, ['Content-Type' => 'text/plain'], [ 'Not found' ]] unless -e "css/themes/$theme.css";
        my $css = read_file "css/themes/$theme.css";
        $css .= read_file $_ for <css/*.css>;
-       [200, ['Content-Type' => 'text/css', 'Cache-Control' => 'public, max-age=604800'], [minify $css] ]
+       [200, ['Content-Type' => 'text/css', 'Cache-Control' => 'public, max-age=604800', 'X-Forever' => 1], [minify $css] ]
 }
 
-sub variants{ [[css => 1, 'text/css', undef, undef, undef, undef]] }
-
 1
This page took 0.022773 seconds and 4 git commands to generate.