turikhay
05/07/2023, 10:11 PM/
) requests that contain query parameters (?anything
) are served by the origin instead of one of workers. I'm not sure why this happens. I would like all requests to /
to be served by CF.
I've set up the example to illustrate this:
$ curl https://test.0x0f.ru/
served from a worker
$ curl https://test.0x0f.ru/?a=b
served by the origin
turikhay
05/07/2023, 10:11 PMturikhay
05/07/2023, 10:12 PMJames
05/07/2023, 10:13 PMtest.0x0f.ru/*
as your route to catch query paramsWalshy | Pages
05/07/2023, 10:13 PMturikhay
05/07/2023, 10:19 PM/
to be handled by a worker, not the entire domain.James
05/07/2023, 10:21 PMreturn fetch(request)
or similar, but I don't think you can catch query params without the wildcard unfortunatelyturikhay
05/07/2023, 10:21 PM