Cache API vs KV
Which is better for server-side caching of database (d1) calls (aka direct data responses from the backend) - Cache API or KV Storage? The API is quite similar, but the Cache API relies directly on the CDN. This is a CRM-like application with users, roles, etc., so the usual
cache-control
cannot be applied here, as we need a way to programmatically invalidate on some CRUD operations (e.g. display a list of users while invalidate the cache when adding new ones to the database, with routes like /users/students
, /users/students/new
).2 Replies
?channel-crossposting
Please do not post your question in multiple channels per the rules at #😃welcome-and-rules. It creates confusion for people trying to help you and doesn't get your issue or question solved any faster.