fix(next/image): dpl query string should only be used for local images, not remote images (#73184)
Currently, enabling skew protection will cause new deployments to
invalidate the browser cache since the deployment id is including in the
query string as `dpl`. In many cases, such as JS and CSS, these assets
are bundled and include a content hash in the file name, so new
deployments already invalidate browser cache. However, the optimized
image cache is preserved between deploys, so enabling skew protection
breaks that expectation.
This PR removes the `dpl` query string for remote images since those
files don't live in the deployment and therefore don't need skew
protection.
- Related to https://github.com/vercel/next.js/discussions/73015