Skip to content

ECO-CMP-JS-006

Name: Over-fetching API responses

Category: CMP

Family: JS

Primary layer: network

System layers: network

Description

Returning unused fields increases payload size and wasted processing.

Impact

  • confidence: 0.6
  • notes: Often easy win.
  • type: network

Detection

  • languages:
  • javascript
  • method: trace

Remediation

  • guidance: Return only needed fields; use pagination and sparse responses.
  • tradeoffs: API contract changes.

Pattern examples

No pattern examples provided.

Remediation examples

No remediation examples provided.