Skip to content

ETag support #21

@tdammers

Description

@tdammers

For template-based responses, this amounts to hashing the entire response body.

For static responses and raw JSON responses, we can suffice with hashing backend data, but the rendering overhead for those is minimal anyway, so it's probably simpler to just always hash the full response body.

Performance wise, it would be great to be able to hook into backends to directly query them for changed data (which is possible, in principle, for the literal, HTTP, and file backends); unfortunately the load() template function makes it impossible to infer which backends will be hit during a request, so this is only going to be useful for rules that don't involve templates (raw JSON and static).

Relevant discussion in #17.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions