]> iEval git - gruntmaster-page.git/blobdiff - lib/Plack/App/Gruntmaster.pm
Merge branch 'master' into gruntmaster
[gruntmaster-page.git] / lib / Plack / App / Gruntmaster.pm
index 1fc3a85742b6a9c8a6f22a513bf819d0892186f6..63aa12f90a71aa41cebfa8b5a2fb0080d8f42920 100644 (file)
@@ -35,7 +35,7 @@ sub call {
                        my $content = read_file "a/$article.$lang";
                        my $title = read_file "a/$article.$lang.title";
                        my $html = Gruntmaster::Page::Base::header($lang, $title) . $content . Gruntmaster::Page::Base::footer($lang);
-                       return [200, ['Content-Type' => 'text/html', 'Content-Language' => $lang, 'Vary' => 'Accept-Language'], [$html] ]
+                       return [200, ['Content-Type' => 'text/html', 'Content-Language' => $lang, 'Vary' => 'Accept-Language', 'X-Forever' => 1, 'Cache-Control' => 'max-age=300'], [$html] ]
                }
        }
 
@@ -62,7 +62,7 @@ BEGIN{
        get qr,/js, => 'JS';
 
        get qr,/ct/, => 'Ct';
-       get qr,/ct/$word, => 'Ct::Entry';
+       get qr,/ct/$word/, => 'Ct::Entry';
        get qr,/us/, => 'Us';
        get qr,/us/$word, => 'Us::Entry';
 
This page took 0.02032 seconds and 4 git commands to generate.