wimdeblauwe / htmx-spring-boot

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

Use caching response wrapper in case views render pre-emptively #52

Closed dsyer closed 1 year ago

dsyer commented 1 year ago

Some View implementations will (not unreasonably) call response.getWriter() and write content directly. This is an error (in the spec I think) and Tomcat, for example, will barf. You can dodge the bullet by using an existing mechanism in Spring.