Use the last-modified field for verifying the cache

Also use it for after & until queries. I think users will expect modified entries to show up in date filter queries. I can separate that into a separate PR if needed.