且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从服务器端清除浏览器的缓存?

更新时间:2023-11-27 21:57:04

将响应设置为立即过期,并采取适当措施告知代理等,不要缓存:

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

Expires: 0
Cache-control: private