]> iEval git - plack-app-gruntmaster.git/commitdiff
Redirect /favicon.ico to /static/favicon.ico
authorMarius Gavrilescu <marius@ieval.ro>
Wed, 4 Feb 2015 08:02:08 +0000 (10:02 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Wed, 4 Feb 2015 08:02:08 +0000 (10:02 +0200)
lib/Plack/App/Gruntmaster.pm

index 59e5720c96bd28ce571c8021be6dd972156903a2..007ad6bd754369773e356cab360cfdde552c0e4c 100644 (file)
@@ -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']] }
        },
 
This page took 0.029638 seconds and 4 git commands to generate.