import { requestMethod } from "../routes.example.js";
import { cache } from "./cache.js";
requestMethod.head({ pathname: "/:type/:id" }, async (request) => {
    const match = await cache.match(request);
    return new Response(null, {
        status: match ? 200 : 404,
        headers: {
            "Content-Type": match?.headers.get("Content-Type"),
            "Last-Modified": (match?.headers.get("Last-Modified") ??
                match?.headers.get("Date"))
        }
    });
});
//# sourceMappingURL=head.js.map