Skip to content

frontend组合条件路由问题 #35

@EverCurse

Description

@EverCurse

`
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions