What problem does it solve?
Slow API responses and large payloads increase latency, consume bandwidth, and degrade user experience; this Skill focuses on reducing response time and payload size to improve application performance and scalability.
Core Features & Use Cases
- HTTP Caching: Guidance on Cache-Control, ETag, and Last-Modified headers to reduce repeated work and enable 304 responses.
- Compression & Payload Minimization: Recommendations for gzip/brotli compression, sparse fieldsets, and removing sensitive or unused fields.
- Query and Infrastructure Optimization: Advice on caching layers, query caching, fragment caching, and database/query tuning with monitoring and alerting.
- Use Case: Speed up a user profile endpoint by removing sensitive fields, enabling response caching with proper keys, and serving compressed JSON to cut latency and bandwidth.
Quick Start
Use the api-response-optimization resources to add Cache-Control and ETag headers, remove unnecessary fields from responses, and enable gzip or brotli compression on API responses.