[perf] Check data URLs before loading proxy metadata (#101207)
Check for a data URL before loading proxy metadata, avoiding proxy
initialization on unrelated page requests.
The measured benefit is on unmatched page/API requests. The
matched-proxy difference is within local variation.
| Metric | Before | After |
|---|---:|---:|
| First completed unmatched static HTML response, ms ↓ | 172.4 | 164.9 |
| First completed unmatched dynamic SSR response, ms ↓ | 189.5 | 180.0 |
| First completed matched proxy response, ms ↓ | 170.3 | 170.4 |
| First completed unmatched API response, ms ↓ | 174.3 | 166.1 |
Measured base:
[d2defa02a288](https://github.com/vercel/next.js/commit/d2defa02a2887f94b99a573cf17efbef112218fd).
Measured revision:
[59717f073dd1](https://github.com/vercel/next.js/commit/59717f073dd170fccc91154bad36d1fca9a96484).
Local Apple M5 Max, Node v26.8.1, darwin/arm64. Website fixture with a
scoped proxy, built with Webpack and served by actual generated
standalone server.js files. Medians from twenty fresh-process blocks.
Startup ends when the complete first response body arrives. Filesystem
caches are warm; Node compile cache is disabled. Identical-code controls
are included for each distinct PR base.
---------
Co-authored-by: Tim Neutkens <timneutkens@me.com>