add compress middleware to app chain