Insert middleware before ActionDispatch::Static

This ensures that it will be invoked for static, precompiled assets