Response headers and redirects the front worker applies per site (no Durable Object request).
RESPONSE_HEADERS and REDIRECTS are a JSON string (KV, --var) or the array itself (vars).
Headers: [{ "path": "/prefix*" | "/exact", "set": { "Name": "value" } }], applied over
DEFAULT_HEADERS; a value of "" removes the header.
Redirects: [{ "from": "/old" | "/old/*", "to": "/new" | "/new/*" | "https://..." }], with an
optional status (301 by default, or 302, 307, 308).
Response headers and redirects the front worker applies per site (no Durable Object request).
RESPONSE_HEADERSandREDIRECTSare a JSON string (KV,--var) or the array itself (vars). Headers:[{ "path": "/prefix*" | "/exact", "set": { "Name": "value" } }], applied over DEFAULT_HEADERS; a value of""removes the header. Redirects:[{ "from": "/old" | "/old/*", "to": "/new" | "/new/*" | "https://..." }], with an optionalstatus(301 by default, or 302, 307, 308).