Add support for pre-static middleware