Comments (3)
我不是很懂你的问题。
你说的这些缓存应该都是 HTTP 缓存,是由 HTTP 服务器控制的和应用没有关系。
from microfrontends.
举个例子:
独立部署,宿主 app 加载子应用是使用的 {src: 'a.b.c/a.js'}
那么不更新宿主 app 时这个 url 永远不会变。
子应用要更新,最终打包部署,最新资源还是 'a.b.c/a.js',那么怎么更新呢?
只能使用协商缓存,宿主 app 加载子应用时必须问服务端有没有新资源。
而我们现在加载静态资源最佳实践确实 cdn + 强制缓存,构建时加上 hash 或者版本号。
from microfrontends.
静态资源肯定要 hash…….。不 hash,所有的缓存都会出现问题。
所以,我觉得是你们设计有问题啊,你要加载子应用,肯定存在某个配置。这个配置说明应用在哪里。
from microfrontends.
Related Issues (20)
- 问个偏业务点的问题,关于鉴权 HOT 4
- P155 纠错 HOT 1
- conceptions question HOT 12
- 公共 UI 库 HOT 9
- routing between micro front ends HOT 1
- Load config via app.json HOT 1
- 对【后端解耦,前端聚合】的想法
- 请问下文中的angualr是ng几 HOT 1
- 基于 chunk 加载模式的尝试
- 我也是最近实现了类似一个微前端的库,居然不知道社区已经讨论的这么火热了
- 前年随手写了个前端框架,现在看发现跟wei前端的理念很像,天然支持组件化的。
- 代码隔离要怎么做呢? HOT 5
- 我买了你的书,你却告诉我它开源, 悲伤2021 HOT 1
- 关于微前端的一些探讨 HOT 2
- 请教:postMessage 事件对于应用的侵入性太强怎么理解 HOT 6
- 关于子项目打包 HOT 3
- 请问我这个项目算不算微前端? HOT 3
- 如何分开上报错误? HOT 3
- English version HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microfrontends.