Skip to content

docs: Immutable static assets#95348

Open
mischnic wants to merge 4 commits into
canaryfrom
mischnic/immutable-docs
Open

docs: Immutable static assets#95348
mischnic wants to merge 4 commits into
canaryfrom
mischnic/immutable-docs

Conversation

@mischnic

@mischnic mischnic commented Jul 1, 2026

Copy link
Copy Markdown
Member

No description provided.

@mischnic mischnic requested a review from icyJoseph July 1, 2026 07:15
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Tests Passed

Commit: 0f86fd9

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Stats skipped

Commit: 0f86fd9
View workflow run

Comment thread docs/01-app/03-api-reference/07-adapters/12-immutable-static-assets.mdx Outdated
Comment thread docs/01-app/03-api-reference/07-adapters/12-immutable-static-assets.mdx Outdated
Comment thread docs/01-app/03-api-reference/07-adapters/09-output-types.mdx Outdated
@mischnic mischnic force-pushed the mischnic/immutable-docs branch from 7c9c1e7 to a843c13 Compare July 1, 2026 13:25
Comment thread docs/01-app/03-api-reference/07-adapters/12-immutable-static-assets.mdx Outdated
Comment thread docs/01-app/03-api-reference/07-adapters/12-immutable-static-assets.mdx Outdated
Comment thread docs/01-app/03-api-reference/07-adapters/12-immutable-static-assets.mdx Outdated
>
> **Enabling this feature when your provider or adapter does not support it can result in broken deployments.**

Enabling skew protection means that all static assets are requested with a deployment-specific query parameter, e.g.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Enabling skew protection means that all static assets are requested with a deployment-specific query parameter, e.g.
When skew protection is enabled, static asset requests include a deployment-specific query parameter, for example:
GET https://foo.com/_next/static/chunks/0d_ks0ow7ur6m.js?dpl=<unique-deployment-id>
```

One downside of this is that browsers have to download even unchanged static assets again after a new deployment.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
One downside of this is that browsers have to download even unchanged static assets again after a new deployment.
One downside is that browsers have to download static assets again after each new deployment, even when those assets have not changed.

One downside of this is that browsers have to download even unchanged static assets again after a new deployment.

Immutable static assets is a feature that enables omitting the `?dpl` query parameter for static assets that are guaranteed to be immutable and content-addressed by their filename, allowing browsers to cache them indefinitely. It also enables not uploading unchanged static assets again after a new deployment:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Immutable static assets is a feature that enables omitting the `?dpl` query parameter for static assets that are guaranteed to be immutable and content-addressed by their filename, allowing browsers to cache them indefinitely. It also enables not uploading unchanged static assets again after a new deployment:
Immutable static assets allow the `?dpl` query parameter to be omitted for static assets that are guaranteed to be immutable and content-addressed by their filename. This lets browsers cache those assets indefinitely and allows unchanged static assets to be skipped when uploading files during subsequent deployments:
GET https://foo.com/_next/static/immutable/chunks/0d_ks0ow7ur6m.js
```

You can use this config option to opt out of immutable static assets (when your adapter enabled it, otherwise this has no effect):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
You can use this config option to opt out of immutable static assets (when your adapter enabled it, otherwise this has no effect):
You can use this config option to opt out of immutable static assets when your adapter has enabled support for them. If your adapter has not enabled this feature, this option has no effect:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants