X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=app.psgi;h=f7c85ffec3149dbd1bba33486039966bb74dfd92;hb=30c4e6d3ecb421e30650768274e55977fb8de0cb;hp=53721091fb1bf799c058206d811e4bfc12eaf186;hpb=8d7256911fcd2f44fc446f03acb39dd08e90024d;p=plack-app-gruntmaster.git diff --git a/app.psgi b/app.psgi index 5372109..f7c85ff 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;