X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=app.psgi;fp=app.psgi;h=eee1ad7b69211a6afa50e1d444c6a6c1ded1957f;hb=2f64890f1e92658a274f47d6bd7d2baf587bf179;hp=290ef4b5fb4d41e145032d7fc81599ba03fc889e;hpb=bd623b0d48dd6a43d140e8c0af0be975fdee2656;p=gruntmaster-page.git diff --git a/app.psgi b/app.psgi index 290ef4b..eee1ad7 100644 --- a/app.psgi +++ b/app.psgi @@ -44,6 +44,7 @@ sub add_headers { my $resp = $app->($_[0]); my $hdrs = Plack::Util::headers($resp->[1]); $hdrs->set('Content-Security-Policy', CONTENT_SECURITY_POLICY); + $hdrs->set('Link', '; rel=stylesheet') if $hdrs->get('Content-Type') =~ m,^text/html,; $hdrs->set('Cache-Control', 'public, max-age=604800') if $_[0]->{PATH_INFO} =~ qr,^/static/,; $resp->[1] = $hdrs->headers; $resp;