made compression and caching available to plugin api endpoints