Caching and status codes

Instead of "permanent" caching (what is permanent?) I am thinking
about using timestamps.

So, for a requested resource, (if it is available) return a timestamp
which denotes when the resource was last changed.

When requesting the resource again, send that timestamp with it and
the server checks if the cache is stale or not and responds
accordingly (either "resource is modified after $(old_timestamp) so
here is the new resource and it was modified on $(new_timestamp)" or
"the resource was not changed after $(timestamp)").

But the problem is, where does the timestamp goes in the request and response?


~smlckz

---

Previous in thread (1 of 55): 🗣️ bie (bie (a) 202x.moe)

Next in thread (3 of 55): 🗣️ Björn Wärmedal (bjorn.warmedal (a) gmail.com)

View entire thread.