While conducting a physical inventory in Stock Management, the UI needs to fetch the latest orderable information. Since we now cache orderables, it would make sense to use that cache.
As opposed to requisitions, the Stock Management does not link to specific versions of orderables. It always fetches the latest available orderables. Therefore, to make use of caching in stock management we should:
Use orderables fetch endpoint with If-Modified-Since header
Store the latest modified date on the client side
Make any subsequent calls for orderables with the If-Modified-Since header to only retrieve orderables that might have changed
Introduce search with If-Modified-Since header to OpenlmisCachedResource if not supported yet