Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please clarify HTTP Repsonse Vary #68

Open
nickchomey opened this issue Apr 23, 2023 · 0 comments
Open

Please clarify HTTP Repsonse Vary #68

nickchomey opened this issue Apr 23, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@nickchomey
Copy link

nickchomey commented Apr 23, 2023

THis is from Chapter 6

The solution to this problem is to use the HTTP Response Vary header and call out the htmx headers that you are using to determine what content you are returning. A full explanation of HTTP Caching is beyond the scope of this book, but the MDN article on the topic is quite good, and the htmx documentation discusses this issue as well.

There's no need to do a deep-dive into HTTP caching, but it would be great if you could add just a line or two about how to use Vary in this context. Likewise in the HTMX docs. Its not at all clear to me (even after consulting MDN) how to use it.

@codetalcott codetalcott added the enhancement New feature or request label Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants