ETagProvider
Built‑in strategies for generating io.ktor.http.HttpHeaders.ETag for static content.
Note: for this functionality to work, you need to install the ConditionalHeaders plugin.
Usage:
install(ConditionalHeaders)
routing {
staticFiles("/assets", File("assets")) {
etag(ETagProvider.StrongSha256)
}
}Content copied to clipboard
Functions
Link copied to clipboard
Provides an EntityTagVersion for the given resource or null if it cannot be provided.