]> iEval git - plack-app-gruntmaster.git/blobdiff - lib/Plack/App/Gruntmaster.pm
Add Content-Security-Policy
[plack-app-gruntmaster.git] / lib / Plack / App / Gruntmaster.pm
index 2334235f1670bf64f997eafccde6e5d239c44812..508a81c9905cc22da6f14fec06259fb6be22a353 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] ]
                }
        }
 
@@ -70,9 +70,12 @@ BEGIN{
        get qr,$ct/log/st, => 'St';
        get qr,$ct/log/job/$word, => 'Log::Entry';
        get qr,$ct/log/src/$word\.$word, => 'Src';
-       get qr,$ct/submit, => 'Submit';
        get qr,$ct/pb/, => 'Pb';
        get qr,$ct/pb/$word, => 'Pb::Entry';
+       post qr,$ct/pb/$word/submit, => 'Submit';
+
+       post qr,/action/register, => 'Register';
+       post qr,/action/passwd, => 'Passwd';
 }
 
 1;
This page took 0.029307 seconds and 4 git commands to generate.