From: Marius Gavrilescu Date: Wed, 4 Feb 2015 08:02:08 +0000 (+0200) Subject: Redirect /favicon.ico to /static/favicon.ico X-Git-Url: http://git.ieval.ro/?p=gruntmaster-page.git;a=commitdiff_plain;h=cb0122d7defc0d1f71f17c0713a36d9fd5f1959e Redirect /favicon.ico to /static/favicon.ico --- diff --git a/lib/Plack/App/Gruntmaster.pm b/lib/Plack/App/Gruntmaster.pm index 59e5720..007ad6b 100644 --- a/lib/Plack/App/Gruntmaster.pm +++ b/lib/Plack/App/Gruntmaster.pm @@ -195,6 +195,7 @@ sub dispatch_request{ }, sub (/) { redispatch_to '/index' }, + sub (/favicon.ico) { redirect '/static/favicon.ico' }, sub (/:article) { [200, ['Content-Type' => 'text/html', 'Cache-Control' => 'public, max-age=60', 'X-Forever' => 1], [render_article $_{article}, 'en']] } },