Request with header doesnt minimyze

If have an example worker:

const minimyze = async event => {
// force minify
let request = new Request(event.request, { cf: { minify: { javascript: true, css: true, html: true } } });
request.headers.set(‘x-HTML-Edge-Cache’, ‘supports=cache|purgeall|bypass-cookies’);
response = await fetch(request);
return response;
};
addEventListener(“fetch”, event => event.respondWith(minimyze(event)));

When I test the worker with a js it doesnt minify it. If I comment the request.headers line it minifyes correct

Thanks, Ariel