compression on certain API endpoints