static-handler: fix compression