如何删除整个 HTTP 缓存

时间:2021-06-05 10:22:40

标签: http caching

我有一个 node js 应用程序,我在其中使用 http 缓存以获得更好的性能。 我像这样缓存和删除它。 response.set("Cache-Control", "max-age=" + timeout.toString());

用于丢弃: response.set("Cache-Control", "no-store");

但我有一个场景要处理..如果有任何刷新请求(可能就像用户属性已更改),则必须删除整个 http 缓存,并且需要从头开始重新构建缓存。< /p>

请让我知道如何执行此操作.. 删除整个缓存而不仅仅是一个响应缓存

0 个答案:

没有答案
相关问题