Closed ikey4u closed 1 year ago
I have prepared a demo here to reproduce the problem.
Problem
Requesting remote css resource in axum router slows down the response
Reproduce
Run cargo run, open your browser and access http://127.0.0.1:3009 in a new tab (without any cache enabled).
cargo run
http://127.0.0.1:3009
And you will see the request costs a few seconds to finish, and this demo will give the following output
failed to inline css style: Network(Error(Io(Os { code: 35, kind: WouldBlock, message: "Resource temporarily unavailable" })))
I have prepared a demo here to reproduce the problem.
Problem
Requesting remote css resource in axum router slows down the response
Reproduce
Run
cargo run
, open your browser and accesshttp://127.0.0.1:3009
in a new tab (without any cache enabled).And you will see the request costs a few seconds to finish, and this demo will give the following output