X-Git-Url: http://git.ieval.ro/?p=plack-app-gruntmaster.git;a=blobdiff_plain;f=app.psgi;h=f7c85ffec3149dbd1bba33486039966bb74dfd92;hp=53721091fb1bf799c058206d811e4bfc12eaf186;hb=6d4b4529219434f5d50dd28e17b6bda0e957864d;hpb=bca1707ca8c3959ade1ed1004a6ba363e09d8b66 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;