move compress setting vary header to after filter and other checks are done