Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add application/wasm to list of accepted content-types for webcs #4334

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

ayys
Copy link
Member

@ayys ayys commented Nov 29, 2023


When downloading a webc file, accept files with application/wasm header as
well.
The backend sets Content-Type: application/wasm header on webc files in the
object storage, so they can have dynamic compression enabled on them.
This makes downloading them faster by enabling Accept-Encoding: gzip when
downloading the file.

When downloading a webc file, accept files with `application/wasm` header as
well.
The backend sets `Content-Type: application/wasm` header on webc files in the
object storage, so they can have dynamic compression enabled on them.
This makes downloading them faster by enabling `Accept-Encoding: gzip` when
downloading the file.
Copy link
Contributor

@Michael-F-Bryan Michael-F-Bryan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a bit of a hack to pretend a *.webc file is application/wasm just so our CDN will automatically add compression, but I guess that's the easiest solution right now.

@Michael-F-Bryan Michael-F-Bryan merged commit b38aa5c into master Nov 30, 2023
53 checks passed
@Michael-F-Bryan Michael-F-Bryan deleted the download-package-content-type branch November 30, 2023 11:14
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