-
Notifications
You must be signed in to change notification settings - Fork 142
Open
Description
`
http:
- match:
- headers:
User-Agent:
regex: .((Android)).
route: - destination:
host: frontend
subset: v1
weight: 50 - destination:
host: frontend
subset: v2
weight: 50
- headers:
- route:
- destination:
host: frontend
subset: v1
`
- destination:
如果安卓header匹配到了路由 有50%访问v1 50%访问v2 。如果html访问v1 那么html配套的js就是v1版本的js xxxx.js ,那么请求这个js的时候 同样匹配到了 并路由到v2版本 那么v2版本是不存在xxxx.js的 会出现404.真实的生产环境我们也遇到这个问题 请问怎么解决呢? 前端和接口不一样 html镶嵌了很多css js ,css js也会走这种路有逻辑 ,那么就会出现404.
Metadata
Metadata
Assignees
Labels
No labels