Repository navigation
asset_pipeline 0.41.0 stores Brotli in the page cache by default, written in
Crystal by Mica, and removes the -Dasset_pipeline_brotli build flag, so
this is a minor release. The page cache now guards its compressed copies
against BREACH with the same rule as Amber's compression pipe.
-
The page cache stores Brotli by default, with no build flag. A stored
page gets its Brotli copy (quality 5, window 22) from Mica, written in
Crystal, beside its gzip copy, soAccept-Encoding: brgetsbron every
page-cache hit and the app links no libbrotlienc. The
-Dasset_pipeline_brotliflag and the libbrotlienc binding are removed;
PageCache::Settings#stores_brotli = falseturns Brotli off. The vendored
Mica moves from 37e8b019 (deflate) to v0.3.0, 68e5c22c (compression:
DEFLATE plus Brotli), the copy Amber carries. Crystal older than 1.21
cannot build Mica, so there the page cache stores no Brotli copy and
stores_brotli = trueis accepted but stores nothing. Upgrading: drop
-Dasset_pipeline_brotlifrom your build; an app on Crystal 1.10 to 1.20
that used the flag to servebrmoves to Crystal 1.21 or newer to keep
serving it. -
BREACH guard for the page cache (CVE-2013-3587).
PageCache#answer_from
serves a stored gzip or Brotli copy only when
Components::Cache::BreachGuard.may_compress_response_to?allows it, the
same rule as Amber'sAmber::Pipe::Compression: same-origin, same-site and
user-initiated requests, and top-level page loads from other sites, get the
compressed copy; cross-site iframes and subresources, and clients without
fetch metadata whoseReferernames another host or port, get the
uncompressed copy. Page-cache answers now carryVary: Accept-Encoding, Sec-Fetch-Site, Sec-Fetch-Mode, Sec-Fetch-Dest.
Checks at the tagged commit's PR head dda3c1c (asset_pipeline#47): GitHub runs no workflow on pull requests into release-0.41, so the head ran the same suite locally: make test-web CRYSTAL=crystal-alpha (crystal-alpha 1.22.3-incremental-6), 2225 examples, 0 failures, 0 errors, 69 pending. Its base 9848c92 passed run 45742126245: 6 jobs green (regex on Mica, Web on Ubuntu and macOS with Crystal 1.10.1 and latest, static assets on Windows); the head differs from the base only in version strings and CHANGELOG text. The squash commit has the same tree as the tested head.
Commit: 29afae38c14f82c61084dbf88cd0f2b8db169afd
Tree: 2fc15dbe66266765f8a4c6a4b0dd4a4c1cf75d62
Tarball: asset_pipeline-0.41.0.tar.gz (git archive --format=tar.gz --prefix=asset_pipeline-0.41.0/ 29afae38c14f82c61084dbf88cd0f2b8db169afd)
Tarball sha256: 520bfb18a7207a21dde43d07de6b0d7854ee037e2e42eb5501e3da2b6acd3db2
shard.lock checksum (Minecart 2025.11.25.9 and newer): sha256-v2:ebb059b9c5878f9368afb36a0936c592e3179a4ce96415726b91065beb1b29d0
The tarball was built twice from the commit and gave the same sha256 both times, and the copy attached here was downloaded again and matched.
Verification
Tag: v0.41.0 (annotated tag object 2e0903773340181b70747b87cf31296dff7a260b)
Commit: 29afae38c14f82c61084dbf88cd0f2b8db169afd
Tree: 2fc15dbe66266765f8a4c6a4b0dd4a4c1cf75d62
Release asset asset_pipeline-0.41.0.tar.gz sha256: 520bfb18a7207a21dde43d07de6b0d7854ee037e2e42eb5501e3da2b6acd3db2 (built twice, equal; downloaded again after upload, equal; sidecar asset_pipeline-0.41.0.tar.gz.sha256 equal)
GitHub source archive https://github.com/amberframework/asset_pipeline/archive/refs/tags/v0.41.0.tar.gz sha256: b48ec0b01ccfabae6810e31c775448bbff3fe9f1a9a7d99ae058b814ea809092 (downloaded twice, equal; git get-tar-commit-id 29afae38c14f82c61084dbf88cd0f2b8db169afd)
shard.lock checksum: sha256-v2:ebb059b9c5878f9368afb36a0936c592e3179a4ce96415726b91065beb1b29d0