Performance: Custom response headers
LOW IMPACT
Custom response headers affect the network payload size and can influence browser rendering if headers control caching or content behavior.
response.addHeader("X-Request-ID", requestId);response.addHeader("X-Debug-Info", "Very large debug data string repeated many times...");
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Large custom headers with verbose data | 0 | 0 | Increased due to delayed paint | [X] Bad |
| Minimal essential custom headers | 0 | 0 | Minimal impact on paint timing | [OK] Good |