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.
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.