wimdeblauwe / htmx-spring-boot

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

Add Vary header for Hx-Requests #103

Closed dsyer closed 5 months ago

dsyer commented 5 months ago

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

wimdeblauwe commented 5 months ago

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

wimdeblauwe commented 5 months ago

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

dsyer commented 5 months ago

Yes please.

wimdeblauwe commented 5 months ago

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