Made the static middleware happen prior to the Rails static middleware.
This resolves a bug when being mounted on a Rails application