Wildcard on ingress path doesn't work

Setting a path like:

      paths:
      - backend:
          serviceName: iteng-jamf-web-app
          servicePort: http
        path: /*.ajax

Doesn't work as expected. Due to https://github.com/containous/traefik/issues/4761#issuecomment-488720664 we need to make sure that resources ending in .ajax are returned with a text/plain or no content-type.

We don't control the application.

      paths:
      - backend:
          serviceName: iteng-jamf-web-app
          servicePort: http
        path: /{id:.*ajax}

SOLVED