[mod] reduce page loading time by removing useless middleware