LastModifiedVersion

data class LastModifiedVersion(val lastModified: GMTDate) : Version

Creates an instance of LastModifiedVersion that passes the given lastModified date through the If-Modified-Since and If-Unmodified-Since conditional headers provided by the client.

For better accuracy, use ETag instead.

Report a problem

Parameters

lastModified

of the current content, for example the file's last modified date

Constructors

Link copied to clipboard
constructor(lastModified: GMTDate)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun appendHeadersTo(builder: HeadersBuilder)

Appends relevant headers to the builder.

Link copied to clipboard
open override fun check(requestHeaders: Headers): VersionCheckResult
Link copied to clipboard

If-Modified-Since logic: all dates should be before this date (truncated to seconds).

Link copied to clipboard

If-Unmodified-Since logic: all dates should not be before this date (truncated to seconds).