Skip to content

Conversation

jacob-ebey
Copy link
Member

No description provided.

Copy link

changeset-bot bot commented Sep 23, 2025

🦋 Changeset detected

Latest commit: 60b1165

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 11 packages
Name Type
@react-router/serve Patch
@react-router/dev Patch
@react-router/fs-routes Patch
@react-router/remix-routes-option-adapter Patch
create-react-router Patch
react-router Patch
react-router-dom Patch
@react-router/architect Patch
@react-router/cloudflare Patch
@react-router/express Patch
@react-router/node Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

compression(),
express.static(build.assetsBuildDirectory),
);
app.use(compression(), express.static("public", { maxAge: "1h" }));
Copy link
Contributor

Choose a reason for hiding this comment

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

Doesn't this still apply compression to all incoming requests because it doesn't have a path?


let app = express();
app.disable("x-powered-by");
app.use(compression());
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be easier/less risk of impacting non-RSC use cases to just disable it completely for RSC framework mode for now because it's unstable?

  if (!isRSCServerBuild(build)) {
    app.use(compression());
  }

I assume we'll want to turn it back on before stabilizing so then we can just remove the if and not unwind these other changes?

@brophdawg11 brophdawg11 merged commit 9422ab0 into release-next Sep 24, 2025
5 checks passed
@brophdawg11 brophdawg11 deleted the disable-rsc-compression branch September 24, 2025 14:30
Copy link
Contributor

🤖 Hello there,

We just published version 7.9.2-pre.3 which includes this pull request. If you'd like to take it for a test run please try it out and let us know what you think!

Thanks!

Copy link
Contributor

🤖 Hello there,

We just published version 7.9.2 which includes this pull request. If you'd like to take it for a test run please try it out and let us know what you think!

Thanks!

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.

2 participants