Skip to content
On this page

主应用刷新页面子应用还是旧内容

修改nginx配置

shell
location = /index.html {
  add_header Cache-Control no-cache;
}

子应用entry后面加时间戳

{
  name: 'sub-app',
  entry: `${url}?t=${new Date().getTime()}`,
  container: '#container',
  activeRule: '/#/sub-app',
}

更新时间: