Skip to content

Quick explanation of how this is supposed to work #16

@amit777

Description

@amit777

I was wondering if you could provide a quick overview of the concept behind this middleware. I'm trying to get a better understanding of how it works with the etag middleware. The code looks so simple, so I feel like I'm missing something very basic.

Specifically, I see some code to check ctx.fresh and then return 304. But I don't see how ctx.fresh is supposed to get set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions