Hello all,
is it possible to route to worker only for html and not all other resource?
domain.com/* will route all the request to worker.
is it possible to exclude subrequest like *.js / *.jpg
thanks
Hello all,
is it possible to route to worker only for html and not all other resource?
domain.com/* will route all the request to worker.
is it possible to exclude subrequest like *.js / *.jpg
thanks
Sorry, that’s not possible.
If you don’t want the worker altering other resources, you can use a Conditional response. Something like this script, where certain extensions trigger a return fetch(request);
, and others using your worker code:
If you have trouble with your Workers code, the developer community on the Discord can offer some pointers: