清除所有网站缓存? [英] Clear all website cache?

查看:90
本文介绍了清除所有网站缓存?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以清除所有站点缓存?我想在用户注销或会话过期时执行此操作,而不是指示浏览器不要对每个请求进行缓存。

Is it possible to clear all site cache? I would like to do this when the user logs out or the session expires instead of instructing the browser not to cache on each request.

推荐答案

<据我所知,没有办法指示浏览器清除它为您的网站缓存的所有页面。当您作为网站作者,拥有页面缓存的唯一控制权是在浏览器尝试访问该页面时发生的。您可以使用 Expires 标头指定页面的缓存版本应在特定时间到期,但是即使那样,浏览器实际上也不会从那时清除其缓存中的页面。时间。

As far as I know, there is no way to instruct the browser to clear all the pages it has cached for your site. The only control that you, as a website author, have over caching of a page occurs when the browser tries to access that page. You can specify that cached versions of your pages should expire at a certain time using the Expires header, but even then the browser won't actually clear the page from its cache at that time.

这篇关于清除所有网站缓存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆