A
A
Alexander Vasilenko2020-01-12 13:26:20
RESTful API
Alexander Vasilenko, 2020-01-12 13:26:20

How does the client know when it's time to clear the cache for a specific resource?

Let's say we have a client and a server. Everything is done in RESTful architecture. The client caches resources received from the server. But we know that as soon as the data changes on the server, the client must clear the cache.
And so, the question. In what ways does the server communicate to the client, or does the client find out from the server that the data has changed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Dokin, 2020-01-12
@alnidok

Either add the version number to the url or use etag .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question