jq 前端 清理缓存

//退出
    function logout(){
        //aceClear();//清理浏览器 临时信息,去掉,它会重启请求获取菜单而后缓存的,不太好的 
        
        window.sessionStorage.clear();// 清除session 缓存 
        var url = _ctxPath + "/system/user/logout.do";
        window.location.href = url;
    }浏览器

同时 设置不缓存缓存

<!-- 不缓存  -->
<meta http-equiv="Expires" content="Thu, 01 Jan 1970 00:00:01 GMT">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Cache" content="no-cache">session