It seems that the HX-Request-Type header is not added for requests with preload.
How to reproduce:
- Go to https://four.htmx.org/
- Open devtools, network tab
- Hover on any menu item in the top to trigger HTMX preload
- Observe that HX-Request-Type header is missing
- Wait 5 seconds to let the preloaded response expire
- Click the link to let HTMX do a regular request
- Observe that this request does include the HX-Request-Type header
It seems that the HX-Request-Type header is not added for requests with preload.
How to reproduce: