Handling etag headers? · Issue #154 · imacrayon/alpine-ajax · GitHub
Skip to content

Handling etag headers? #154

Open
Open

Description

@saolof

The etag header is often used together with the cache control header to handle cache freshness and transactions in restful transactions:

https://dev.to/andreasbergstrom/understanding-cache-control-and-etag-for-efficient-web-caching-2nf5

https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/ETag

This works out of the box in MPAs. Would it make sense for alpine ajax to explicitly support etags as relevant for the progressive enhancement usecase, and add documentation examples? The docs examples are also great for teaching how hypermedia is supposed to be used in the first place. The HTMX docs claim that htmx supports etag but unfortunately don't explain it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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