// /careers was removed (2026-12-02). Answer /careers and /careers/ with the site's normal 404 page, // never from the asset layer, so a stale copy of the old careers page can't be served. export async function onRequest({ request, env }) { let page = await env.ASSETS.fetch(new URL('/404.html', request.url)); const moved = page.status >= 300 && page.status < 400 && page.headers.get('Location'); if (moved) page = await env.ASSETS.fetch(new URL(moved, request.url)); return new Response(request.method === 'HEAD' ? null : page.body, { status: 404, headers: { 'Content-Type': 'text/html; charset=utf-8', 'Cache-Control': 'no-store' }, }); }