Implement caching via response etags for adr backend

Signed-off-by: Robert Bunning <rbunning@webstaurantstore.com>
This commit is contained in:
Robert Bunning
2022-12-23 16:26:33 -05:00
parent 42ecf54e48
commit 54baecbd1a
4 changed files with 116 additions and 18 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ export class AdrClient implements AdrApi {
const data = await result.json();
if (!result.ok) {
throw new Error(data.error.message);
throw new Error(`${data.message}`);
}
return data;
}