As a followup to my query on suppressing header marking, I have prepared an example which clearly shows odd, if not buggy behavior.

The book places chapter openings on recto pages which follow a verso that may have an epigraph. When there is no epigraph, the blank verso is properly unmarked by a header, but when there is an epigraph, the header from the previous chapter appears on the page. How can I eliminate this orphan header?

\setuppagenumbering [alternative=doublesided,location=]
\setupheadertexts   [][{\it\getmarking[section]}]
                    [{\it\getmarking[chapter]}][]

\starttexdefinition unexpanded startSectionEpigraph
    \dostartbuffer  [SectionEpigraph]
                    [startSectionEpigraph][stopSectionEpigraph]
\stoptexdefinition

\setuphead          [chapter][
                     beforesection=\setups{chapter:epigraph}]

\startsetups chapter:epigraph
    \page[yes,left]% same result with yes,header,footer,left
    \doifelsebuffer{SectionEpigraph}
        {\getbuffer[SectionEpigraph]
         \resetbuffer[SectionEpigraph]}
        {\donothing}
    \page[yes,header,footer,right]
\stopsetups

\starttext

    \completecontent

    \startfrontmatter
    \startchapter[title=Preface]
        \startparagraph
            \input ward
        \stopparagraph
    \stopchapter

    \stopfrontmatter
    \startbodymatter

    \startchapter[title=Chapter First]
        \startparagraph
            \input ward
        \stopparagraph
    \stopchapter

    \startSectionEpigraph
        Why does this page have the heading
        from the previous chapter?
    \stopSectionEpigraph

    \startchapter[title=Chapter Second]
        \startparagraph
            \input ward
        \stopparagraph
    \stopchapter

    \startSectionEpigraph
          Look up!
    \stopSectionEpigraph

    \startchapter[title=Chapter Third]
        \startparagraph
            \input ward
        \stopparagraph
    \stopchapter

    \startchapter[title=Chapter Final]
        \startparagraph
            \input ward
        \stopparagraph
    \stopchapter

    \stopbodymatter

\stoptext
--
Rik