Skip to content

Support compressing static assets#9739

Open
mszabo-wikia wants to merge 1 commit intofacebook:masterfrom
mszabo-wikia:support-static-assets-compression
Open

Support compressing static assets#9739
mszabo-wikia wants to merge 1 commit intofacebook:masterfrom
mszabo-wikia:support-static-assets-compression

Conversation

@mszabo-wikia
Copy link
Copy Markdown
Contributor

HHVM has support for serving static assets via the builtin server, but they're always served uncompressed. It would be valuable if these responses were compressed in some development setups.

So, introduce a new runtime option Server.AllowStaticAssetsCompression that defaults to false and allows on-the-fly compression of static assets if enabled. Remove the confusing compressed parameter from sendStaticContent as it appears to have been once used to indicate whether the content was precompressed but is now always false.

HHVM has support for serving static assets via the builtin server,
but they're always served uncompressed. It would be valuable if
these responses were compressed in some development setups.

So, introduce a new runtime option `Server.AllowStaticAssetsCompression`
that defaults to `false` and allows on-the-fly compression of static
assets if enabled. Remove the confusing `compressed` parameter
from `sendStaticContent` as it appears to have been once used
to indicate whether the content was precompressed but is now always
`false`.
@meta-cla meta-cla bot added the CLA Signed label Mar 19, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Mar 19, 2026

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this in D97372873. (Because this pull request was imported automatically, there will not be any future comments.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant