Skip to content

Update request decompression and response compression docs with Zstandard (zstd) support - #37300

Merged
tdykstra merged 5 commits into
mainfrom
copilot/update-compression-pages-zstd
Jul 2, 2026
Merged

tdykstra merged 5 commits into
mainfrom
copilot/update-compression-pages-zstd

Conversation

Copilot AI commented Jun 30, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #36990
Fixes #36992
Fixes #36993

Zstandard (zstd) compression support was added in ASP.NET Core 11.0-preview3 but wasn't reflected in the compression middleware documentation. Updates both response-compression.md and request-decompression.md to document zstd as a default-enabled encoding.

response-compression.md

  • Encoding designations table: adds zstd | Yes (default) row for >= aspnetcore-11.0 (RFC 8878)
  • Default provider behavior for >= aspnetcore-11.0: Zstandard is now the highest-priority default (Zstandard → Brotli → Gzip fallback chain)
  • New ### Zstandard compression provider subsection documenting ZstandardCompressionProvider and ZstandardCompressionProviderOptions quality setting (1–22):
    builder.Services.Configure<ZstandardCompressionProviderOptions>(options =>
    {
        options.CompressionOptions = new ZstandardCompressionOptions
        {
            Quality = 6 // 1-22, higher = better compression, slower
        };
    });
  • Troubleshoot section: adds zstd to accepted Accept-Encoding values for >= aspnetcore-11.0
  • Adds RFC 8878 to related content

request-decompression.md

  • Default decompression providers table: adds zstd row for >= aspnetcore-11.0
  • Exception note: documents that Deflate, GZip, and Zstandard all throw InvalidDataException on invalid compressed data (version-gated to >= aspnetcore-11.0)
  • Adds RFC 8878 to additional resources

All additions use :::moniker range::: blocks to correctly scope content to the versions where zstd is available.


Internal previews

📄 File 🔗 Preview link
aspnetcore/fundamentals/middleware/request-decompression.md aspnetcore/fundamentals/middleware/request-decompression
aspnetcore/performance/response-compression.md aspnetcore/performance/response-compression

Copilot AI changed the title [WIP] Update request and response compression pages with zstd Update request decompression and response compression docs with Zstandard (zstd) support Jun 30, 2026
Copilot AI requested a review from tdykstra June 30, 2026 20:31
@tdykstra
tdykstra marked this pull request as ready for review July 1, 2026 18:07
@tdykstra
tdykstra requested a review from wadepickett July 1, 2026 18:11

@wadepickett wadepickett left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved. Looks great. I made 2 very minor suggestions inline.

Co-authored-by: Wade Pickett <wpickett@microsoft.com>
@tdykstra
tdykstra requested review from tdykstra and wadepickett July 2, 2026 01:37

@wadepickett wadepickett left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved. Great work.

@wadepickett

Copy link
Copy Markdown
Contributor

@tdykstra, not sure why the status checker is not working. You might try closing then reopening to rebuild.

@tdykstra tdykstra left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@copilot
The build reported this error - please investigate and fix:
In file: aspnetcore/performance/response-compression.md
Line 49: [Warning] No "::: moniker-end" found for ">= aspnetcore-6.0 < aspnetcore-11.0", MonikerRange does not end explicitly.

Copilot AI commented Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

@copilot
The build reported this error - please investigate and fix:
In file: aspnetcore/performance/response-compression.md...

Fixed in the latest commit. The outer :::moniker range=">= aspnetcore-6.0" block was wrapping all the inner moniker pairs (creating nested monikers), which the docs build system doesn't support. I restructured the file to break the outer wrapper into multiple non-overlapping >= aspnetcore-6.0 blocks between each version-specific inner moniker pair, so all moniker blocks are now at a single nesting depth.

Copilot AI requested a review from tdykstra July 2, 2026 19:14
@tdykstra
tdykstra requested a review from wadepickett July 2, 2026 19:30

@wadepickett wadepickett left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@tdykstra, re-approved and ready to merge.

@tdykstra
tdykstra merged commit b47746e into main Jul 2, 2026
2 checks passed
@tdykstra
tdykstra deleted the copilot/update-compression-pages-zstd branch July 2, 2026 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants