Hello,
Please use curl like this.
First take a note of the date returned in the Last-modified
header.
curl -I -L https://example.org/sample-page/
...
...
Last-Modified: Sun, 12 Oct 2014 04:19:00 GMT
...
...
Then send the If-Modified-Since
header by providing a date later than the above (here I check for a time ~5 hours ahead of the Last-Modified
time).
curl -I -L -H "If-Modified-Since: Sun, 12 Oct 2014 09:00:00 GMT" https://example.org/sample-page/
The response should contain:
HTTP/1.1 304 Not Modified
...
...
...
Hope this helps.
George