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:
Last-Modified/If-Modified-Since
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
Last-Modified
ETag
See these links for more details on the topic:
2.1m questions
2.1m answers
60 comments
57.0k users