Skip to content

Middleware: unclear that reading cookies/headers behaviour #8264

@thomasledoux1

Description

@thomasledoux1

📚 Subject area/topic

Middleware

📋 Page(s) affected (or suggested, for new content)

https://docs.astro.build/en/guides/middleware/

📋 Description of content that is out-of-date or incorrect

At the moment in my opinion it is not clear that you can not read cookies/headers from the context in middleware when you are request a static page.
I'm not sure where exactly this information could be highlighted, but I couldn't figure this out from the existing docs.
I first created an issue in the astro repo withastro/astro#11023

🖥️ Reproduction in StackBlitz (if reporting incorrect content or code samples)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomershelp wantedIssues looking for someone to run with them!improve or update documentationEnhance / update existing documentation (e.g. add example, improve description, update for changes)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions