409 problem #498
Unanswered
Stiropor
asked this question in
Help (Vue)
409 problem
#498
Replies: 1 comment 1 reply
-
just add versioning in your generated app.js file. ref: https://laravel.com/docs/8.x/mix#versioning-and-cache-busting |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sorry for asking here but I cannot seem to find an answer anywhere :(
Intertia works nice, it's amazing, I've just build pretty big (internal) app with it, I love this library.
But after updating to latest version 2 weeks ago I'm having a problem with versions ... when developing in Laravel and I change something in vue file it gets rebuild and all. When I click on a link (and not reload) I get
TypeError: can't access property "x-inertia", t.headers is undefined
. I do get "X-Inertia-Location" header but no x-inertia header anywhere. I have latest versions (using Vue2 still), added middleware in Laravel and all that.How do I make it refresh when assets change (meaning getting 409 response) and how do I get this X-inertia header to be sent, or am I missing something? At least from website and github posts I understood that Inertia should reload page when 409 header is returned? If not, how can I make it work this waY
This is how I create vue instance
which is basic, Laravel's middleware is unchanged. What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions