My service is using akka-http’s
conditional cache directive. The Etag/Last Updated value is received from one of the downstream services along with a stream for response body.
I’m facing an issue that when the user receives 304 status code from the server the
Source for the response body is never piped to a
Sink and therefore never properly consumed.
What is the recommended way of closing dangling streams after
conditional directive handles the response?