TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Returns a resource with a fixed Last-Modified date

GETHEADhttps://api.testingapis.com/api/cache/last-modifiedSign in to see this endpoint's URL

Reads If-Modified-Since: a date on or after Wed, 01 Jan 2025 00:00:00 GMT gives a 304. Invalid dates are ignored. Also answers HEAD.

Parameters 1

NameTypeDescription
If-Modified-Sinceheader · stringHTTP date; returns 304 when the resource hasn't changed since.

Responses

200
The resource, with a Last-Modified header.
304
Not modified since the given date.

Example

Request
curl -X GET "https://api.testingapis.com/api/cache/last-modified" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
Last-Modified: Wed, 01 Jan 2025 00:00:00 GMT
Cache-Control: no-cache

{
  "title": "Unchanged since New Year 2025",
  "lastModified": "Wed, 01 Jan 2025 00:00:00 GMT",
  "hint": "Send If-Modified-Since with this date (or later) to get 304 Not Modified."
}

Sign in to see the details

The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.