Goal
Deduplicate identical in-flight requests. If a GET request to the same URL is already pending, return the existing Promise instead of sending a duplicate.
Requirements
- Configurable per-request opt-in/opt-out
- Only deduplicate safe methods (GET, HEAD, OPTIONS)
- Key generation from URL + headers
- Automatic cleanup when request completes
Goal
Deduplicate identical in-flight requests. If a GET request to the same URL is already pending, return the existing Promise instead of sending a duplicate.
Requirements