public final class IfUnmodifiedSince extends HeaderDate
Only send the response if the entity has not been modified since a specific time.
If-Unmodified-Since: Sat, 29 Oct 1994 19:43:31 GMT
If the requested variant has been modified since the specified time, the server MUST NOT perform the requested operation, and MUST return a 412 (Precondition Failed).
If-Unmodified-Since = "If-Unmodified-Since" ":" HTTP-date
An example of the field is:
If-Unmodified-Since: Sat, 29 Oct 1994 19:43:31 GMT
If the request normally (i.e., without the If-Unmodified-Since header) would result in anything other than a 2xx or 412 status, the If-Unmodified-Since header SHOULD be ignored.
If the specified date is invalid, the header is ignored.
The result of a request having both an If-Unmodified-Since header field and either an If-None-Match or an If-Modified-Since header fields is undefined by this specification.
Modifier and Type | Method and Description |
---|---|
static IfUnmodifiedSince |
forString(String value)
Returns a parsed
If-Unmodified-Since header. |
asDate, toString
public static IfUnmodifiedSince forString(String value)
If-Unmodified-Since
header.value
- The If-Unmodified-Since
header string.If-Unmodified-Since
header, or Copyright © 2018 Apache. All rights reserved.