Estimated reading time: 1 minute
ConditionalHeaders feature adds the ability to avoid sending content if the client already has the same content. It does so by
LastModified properties of the
FinalContent that are sent and comparing these
properties to what client indicates it is having. If the conditions allow it, the entire content is not sent and a
“304 Not Modified” response is sent instead.
io.ktor.features.ConditionalHeadersand no additional artifacts are required.
This feature doesn’t have any configuration object, but a configuration script is executed if present.
Version interface implementations are attached to the
Resource instances, and you can return custom implementations
with your own logic. Please note that
FinalContent is only checked for