-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Am I doing something wrong or is the preload
extension asking the server for pages without the necessary headers?
#89
Comments
Hey, AFAIK, headers will not invalidate your cache, so no matter what your Let me know if I missed something, but I would instead encourage you to split your endpoints so that each can be cached separately and work well with the |
Moving this to the extensions repo btw |
Why not? Right now as very well explained here I'm using the same endpoint choosing what to render (between full or fragment) based on |
Oops indeed, totally forgot about |
@frederikhors The preload extension is sending Please note that A more tricky case is if you use |
Sorry to bother you,
I'm trying these days
htmx
for the first time (CONGRATULATIONS!) and I'm trying right now thepreload
extension.Is it correct that the preload today doesn't send headers like
hx-request
andhx-target
?If this is correct I'm wondering how can such an extension be useful without these headers?
The server will return a whole page on each preload-trigger and my navigation between pages in browser using htmx will never take advantage of that preload.
Simply because what I'm asking to the server are fragments and not entire pages.
Am I wrong?
The text was updated successfully, but these errors were encountered: