最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

brotli - use fallback for zstd with mod_deflate - Stack Overflow

programmeradmin3浏览0评论

I just realized the (shared hosting) server I'm using has zstd encoding enabled (Accept-Encoding: gzip, deflate, br, zstd). But since zstd compression is not yet supported in Safari I would like to use brotli as a fallback. Right now I'm using brotli like this:

<IfModule mod_deflate.c>
    <filesMatch "\.(js|css|html|php|svg|woff|woff2|ico|json|geojson|pbf)$">
        SetOutputFilter BROTLI_COMPRESS
    </filesMatch>
</IfModule>

Is there a way to use zstd and automatically fall back to brotli, if the browser doesn't support zstd?

发布评论

评论列表(0)

  1. 暂无评论