apicache icon indicating copy to clipboard operation
apicache copied to clipboard

Browser use strong cache (from disk)

Open zystudios opened this issue 1 year ago • 0 comments

image

router.get("/", cache("5 minutes"), async function (req, res) {}

Browser will use strong cache (from disk)

This causes a problem if the data has changed in 5 minutes, but the browser keeps using strong caching and will always show the old data

What should I do?

zystudios avatar Dec 16 '24 13:12 zystudios