See discussion on bug 40954.
Copying from the other report: (In reply to David Cook from comment #5) > (In reply to Marcel de Rooy from comment #3) > > Also I am wondering if we should pass such Apache errors to Plack? It takes > > just a few hundred bytes to say Not found in about 50 ms with a trivial > > ErrorDocument but it takes 40K and 500ms to go to errors/404 or 500.pl in > > Plack. > > Shouldnt we reserve the Plack responses for Plack requests (so real perl > > ones)? > > I do think about that sometimes. It also takes up valuable Starman process > time in general. If you've got some bots sending lots of requests that > generate 404s, it doesn't really make sense to hammer your Starman with > requests for 404.pl. > > In the past, I've thought about generating static HTML files which could be > served from the DocumentRoot, so that Starman isn't being touched and Apache > can just do what it does best.