开发者

How to clear browser's cache from server side?

开发者 https://www.devze.com 2022-12-26 04:56 出处:网络
I have to create a web application that deals with user\'s sensitive information. I need to immediately clear the browser\'s cache after user logs out since cach开发者_开发百科ed data would be vulnera

I have to create a web application that deals with user's sensitive information. I need to immediately clear the browser's cache after user logs out since cach开发者_开发百科ed data would be vulnerable. Client's browser should be enforced to clear the Cache from server side. Also all cache policies must be exposed to the client from the server side.

Is there any solution to this problem?


Set the response to expire immediately, and for good measure tell proxies, etc., not to cache:

Expires: 0
Cache-control: private
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号