Skip to content

add #86494 transcode non-streamable audio to mp3 on make public - #141

Merged
TomasHermanek merged 2 commits into
mainfrom
feature/#86494/wav-public-mp3-conversion
Aug 31, 2026
Merged

TomasHermanek merged 2 commits into
mainfrom
feature/#86494/wav-public-mp3-conversion

Conversation

@TomasHermanek

Copy link
Copy Markdown
Contributor

A published 783 MB wav route bypassed CloudFlare's cacheable file size, so every listener streamed ~2.3 Mbps from origin and a scraper triggered network alerts on the cache servers.

Audio whose mime is not publicly streamable (wav, x-wav) is now transcoded to mp3 128k when the public copy is written; the stored original stays untouched and browser-ready audio keeps its raw byte passthrough. Conversion target (extension + bitrate) lives on AudioMimeTypes next to the predicate.

MakePublicAssetFileCommand creates the main public route for any asset file outside an HTTP request, needed to regenerate the existing production route (its URL extension changes from .wav to .mp3).

Tomas Hermanek added 2 commits August 31, 2026 09:36
A published 783 MB wav route bypassed CloudFlare's cacheable file size, so
every listener streamed ~2.3 Mbps from origin and a scraper triggered network
alerts on the cache servers.

Audio whose mime is not publicly streamable (wav, x-wav) is now transcoded to
mp3 128k when the public copy is written; the stored original stays untouched
and browser-ready audio keeps its raw byte passthrough. Conversion target
(extension + bitrate) lives on AudioMimeTypes next to the predicate.

MakePublicAssetFileCommand creates the main public route for any asset file
outside an HTTP request, needed to regenerate the existing production route
(its URL extension changes from .wav to .mp3).
@TomasHermanek
TomasHermanek merged commit 956d237 into main Aug 31, 2026
1 check passed
@TomasHermanek
TomasHermanek deleted the feature/#86494/wav-public-mp3-conversion branch August 31, 2026 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants