-
-
Notifications
You must be signed in to change notification settings - Fork 125
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
feat: enable compression #903
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
Hi, can you add the PR description with some details? |
Thanks for the suggestion! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you make a change?
packages/waku/src/cli.ts
Outdated
@@ -144,6 +145,7 @@ async function runStart() { | |||
import(pathToFileURL(path.resolve(distDir, DIST_ENTRIES_JS)).toString()); | |||
const app = new Hono(); | |||
app.use(contextStorage()); | |||
app.use(compress()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like a good addition, it's not 100% certain if this won't cause any issues for all users.
So, my suggestion is to introduce a new option --experimental-compress
and use it explicitly.
We can also enable it for the dev server too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks for your contribution!
Description meta tags used in the scaffolded apps is wrong as per Google Light House. `<meta property="description" content="The minimal React framework" />` Should be `<meta name="description" content="The minimal React framework" />` This along with #903 gives perfect light house score Co-authored-by: daishi <[email protected]>
Text compression is not enabled in hono.
When we run a light house score on the sample app generated, we get 95 score.
Enabling compression along with the meta description fix in #904 gives 100/100.