Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

页面通用的内容如导航,如何修改后批量更新cache #1130

Open
jennyliang220 opened this issue May 7, 2018 · 1 comment
Open
Assignees

Comments

@jennyliang220
Copy link
Member

使用场景:以小说站点为例,头部导航和通用按钮是每个页面通用的。一个模板嵌套数据后会生成1亿条URL。这些URL如何同时快速更新。目前开发者的用法(不推荐),是将通用html写在组件js代码中,这样上线后10分钟可以生效。

解决方案:考虑使用 html import 或app shell 解决。

@jennyliang220
Copy link
Member Author

修改样式也有同样的问题:开发者修改内联style标签,也需要重新生成所有的页面,并等待cache更新。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants