We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
serveStatic({ precompressed: true })
text/plain
precompressed: true
serveStatic()
c.res
width-compressed.html
width-compressed.html.br
text/plain;charset=UTF-8
app.use( serveStatic({ root: "static", precompressed: true, onFound: (_path, c) => { const { res } = c; }, }) );
I have created MRE in the following repository. https://github.com/SaekiTominaga/mre-hono-static-compress-node
npm run dev1
http://localhost:3000/width-compressed.html
text/html
npm run dev2
npm test
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Environment
Steps to reproduce
precompressed: true
forserveStatic()
c.res
as in the following codewidth-compressed.html
andwidth-compressed.html.br
)text/plain;charset=UTF-8
😥Minimal Reproducible Example
I have created MRE in the following repository.
https://github.com/SaekiTominaga/mre-hono-static-compress-node
npm run dev1
→http://localhost:3000/width-compressed.html
returnstext/html
👍npm run dev2
→http://localhost:3000/width-compressed.html
returnstext/plain
👎npm test
→ "called `c.res` – width compressed" test failsThe text was updated successfully, but these errors were encountered: