test and optimize computation of accept headers