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
When using ajax-request to download static assets from a cdn, some of the proxies/mirrors compress the response body, signaling so in the content-encoding response header (MDN docs).
It would be great if ajax-request could detect and uncompress these responses, or at least provide a pipeline callback for the users to uncompress the response body on-the-fly before writing to disk.
For now I have been rewriting the destination in simple scenarios (only one content-encoding) in the download callback, somewhat like:
Hello,
When using
ajax-request
to download static assets from a cdn, some of the proxies/mirrors compress the response body, signaling so in thecontent-encoding
response header (MDN docs).It would be great if
ajax-request
could detect and uncompress these responses, or at least provide a pipeline callback for the users to uncompress the response body on-the-fly before writing to disk.For now I have been rewriting the destination in simple scenarios (only one
content-encoding
) in the download callback, somewhat like:Thanks.
The text was updated successfully, but these errors were encountered: