[1.9.x] update the compression enabling logic