Skip to content

Conversation

@dshook
Copy link
Contributor

@dshook dshook commented Nov 29, 2025

Enable Gzip compression by default for all apps

#2259

Copy link
Collaborator

@githubsaturn githubsaturn left a comment

Choose a reason for hiding this comment

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

Thanks! Just two nit suggestions. For the CaptainConstant, let's use default prefix. For the server, let's drop the prefix.

This will allow us, in the future, to have a clean override at the app level. i.e. something like:

serverWithSubDomain.gzipOn =
                        app.gzipOn ?? CaptainConstants.configs.defaultGzipOn

This is just in case there are some cases where this needs to be adjusted at the app level. If that happens, we'll add these configs at the app level and will expose that in the UI.


defaultGzipOn: true,

gzipTypes:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's change to defaultGzipTypes

staticWebRoot: string
redirectToPath?: string
logAccessPath?: string
defaultGzipOn?: boolean
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's change to gzipOn

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