we want to start using http4k for serving static s...
# http4k
j
we want to start using http4k for serving static single-page-app resources. For that, we would like to add etag headers to the response. However, the current
EtagSupport
filter doesn't create etag headers for streaming bodies, which makes sense, because calculating the etag hash requires reading the full body in memory. However, in the
ResourceLoadingHandler
we know the resources are present on the filesystem, and a hash can be calculated easily. Some things to think about: • resources can be present in a jar file • ideally, an etag hash needs to be calculated only once per file Any thoughts on this?