Check for debug mode before activating compression