So I am testing Hotwire in Rails, every thing is working as expected. But if I just generate simple CRUD scaffold for rails and call new action, I can see Turbo drive is using fetch
by default and page don't referesh. But when I was reading the tutorial, I read that by default Turbo drive will only load content of <head></head>
only once on first request and I will not load the <head></head>
again on second request.
However when I check the Network tab on Chrome, I can see that <head></head>
is getting loaded for every request. With Turbo Stream I am able to just append/prepend the content but I was hoping I can achieve same thing just by using default Turbo drive. So my question is how can I avoid loading content of <head></head>
in every request ? What am I doing wrong ? I have not written any code, I just use scaffold to generate simple CRUD app.