What could be the difference between if-modified-since and if-none-match? I have a feeling that if-none-match is used for files whereas if-modified-since is used for pages?
Regarding the differences between Last-Modified/If-Modified-Since
and ETag/If-None-Match
:
Both can be used interchangeably. However depending on the type of resource, and how it is generated on the server, one or the other question ("has this been modified since ...?" / "does this still match this ETag?") may be easier to answer.
Examples:
mtime
as the Last-Modified
date is the simplest solution.ETag
will be a lot easier.See these links for more details on the topic: