How can I set the Content-Type header on a Response object?
My code so far:
new Response(
file[1],
{
status: 200,
// i have also tried "contentType", and "ContentType"
"Content-Type": "text/html",
},
)
For background, I am trying to create a custom HTML file and put it in cache with the caches API, and it is defaulting to text/plain.