【发布时间】:2021-10-04 21:22:26
【问题描述】:
我有一个 vaadin 7 应用程序来下载 csv 文件。当我在 csv 文件的响应头中设置 streamResource.setCacheTime(0); Cache-Control: no-cache set 时。
但是如何在资源的响应标头中也设置 no-store。我只想停止在浏览器中保留我的 csv 文件。所以攻击者不能使用它。
以下方法无效streamResource.getStream().setParameter("Cache-Control", "no-cache, no-store, max-age=0, must-revalidate");
这个也没有
response.setHeader("Cache-Control", "no-cache, no-store, max-age=0, must-revalidate");
请帮忙
【问题讨论】:
标签: web-applications httpresponse java-11 vaadin7 websecurity