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

frontend组合条件路由问题 #35

Open
EverCurse opened this issue Oct 23, 2020 · 2 comments
Open

frontend组合条件路由问题 #35

EverCurse opened this issue Oct 23, 2020 · 2 comments

Comments

@EverCurse
Copy link

EverCurse commented Oct 23, 2020

`
http:

  • match:
    • headers:
      User-Agent:
      regex: .((Android)).
      route:
    • destination:
      host: frontend
      subset: v1
      weight: 50
    • destination:
      host: frontend
      subset: v2
      weight: 50
  • route:
    • destination:
      host: frontend
      subset: v1
      `

如果安卓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.

@EverCurse
Copy link
Author

image

@hzux
Copy link

hzux commented Nov 18, 2020

看一下 p501
附录B 实验经验和总结 -> B.3 前端服务的灰度发布策略失效的问题
是不是和你的是同一个问题

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

2 participants