wimdeblauwe / htmx-spring-boot

Spring Boot and Thymeleaf helpers for working with htmx
Apache License 2.0
521 stars 49 forks source link

Add Vary header for Hx-Requests #103

Closed dsyer closed 7 months ago

dsyer commented 7 months ago

The HTMX docs recommend doing this to avoid issues with caches returning partial results. https://htmx.org/docs/#caching

wimdeblauwe commented 7 months ago

Thanks! I see the build is failing, because /hx-vary endpoint does not exist. Did you forget to commit something?

wimdeblauwe commented 7 months ago

Thanks for your remark @xhaggi ! @dsyer Is it ok for you to merge now?

dsyer commented 7 months ago

Yes please.

wimdeblauwe commented 7 months ago

Version 3.3.0 is now released with this included: https://github.com/wimdeblauwe/htmx-spring-boot/releases/tag/3.3.0