Can I turn Rocket Loader on or off from Workers?

Rocket Loader isn’t mentioned in this document.

I tried { cf: { rocketLoader: false } }, didn’t work.

@hb1 did you find a solution?

Hi,
try this, for me work:

addEventListener('fetch', event => {
    // NOTE: can’t use fetch here, as we’re not in an async scope yet
    event.respondWith(eventHandler(event));
  });
  
  async function eventHandler(event) {
    // fetch can be awaited here since `event.respondWith()` waits for the Promise it receives to settle
    const resp = await fetch(event.request, {cf: { rocketLoader: false }});
    return resp;
  }