Replies: 1 comment
-
I'm guessing |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I'm getting Text Compression warnings in Chrome Lighthouse in a Leptos + Axum SSR project.
According to Leptos author tower-http offers compression. I have tried to add it to the best of my knowledge but it seems I haven't done it correctly.
I have following code in Leptos main
After adding the layer, I'm getting additional
content-encoding: gzip
header in the response of the HTML served whenhttp://localhost:3000/
accessed. However, it's not working forjs
&css
. Activating the layers does not seem to change the response payload size either.Without compression layer
With compression layer
Am I doing anything wrong?
tower-http version
0.2.0
Beta Was this translation helpful? Give feedback.
All reactions