You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I already searched, and this issue is not a duplicate.
Issue scope
Library (crate)
Describe the bug
When serving pre-compressed files using zstd, the Content-Encoding header is set to "zst" instead of the correct "zstd". This causes browsers and other clients to fail to handle the content properly.
How to reproduce it
Start the static-web-server with compression-static enabled and with zstd compressed files. e.g.
Search for duplicate issues
Issue scope
Library (crate)
Describe the bug
When serving pre-compressed files using zstd, the Content-Encoding header is set to "zst" instead of the correct "zstd". This causes browsers and other clients to fail to handle the content properly.
How to reproduce it
Expected behavior
The Content-Encoding header should be "zstd".
Complementary information
No response
Build target
Docker linux/amd64
Environment and specs
Additional context
This behavior is caused by the precompressed_variant function in src/compression_static.rs.
The text was updated successfully, but these errors were encountered: