The Client may store Static Ressources and private Data Model States inside of the browser cache.
The Server may provide Ressource & Data Validation for current states on the client side to determine differences.
Data Validation & Synchronization will be processed based on the Main Data Model's state.
GET /cache/sync
Headers:
ETag: 1234
Res:
Nothing & Status 304 if up2date
Nothing & Status 404 if removed
New Resource in Body & Status 200 if not up2date
Client may perform validation from most general to most specific Main Data Model hierachy level to redue complexity of the Differential Cache Syncronization process.
Differential Cache Syncronization
An abstract Data Cache Flow
The Client may store Static Ressources and private Data Model States inside of the browser cache. The Server may provide Ressource & Data Validation for current states on the client side to determine differences.
Data Validation & Synchronization will be processed based on the Main Data Model's state.
GET /cache/sync Headers: ETag: 1234
Res: Nothing & Status 304 if up2date Nothing & Status 404 if removed New Resource in Body & Status 200 if not up2date
Client may perform validation from most general to most specific Main Data Model hierachy level to redue complexity of the Differential Cache Syncronization process.
Rel: https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/http-caching?hl=de