Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

PaulMarshall's avatar

Custom Field Caching

I've created a custom field for Nova, all fine, made some updates and pushed to the server but it's still loading the old JS file.

I've used version() in the mix file, tried npm run dev instead of npm run prod, incognito, another browser, pushed again, all to no avail.

Anyone know how to force Nova to load in the modified version?

Thanks

0 likes
3 replies
bugsysha's avatar

Are you maybe using something like CloudFlare?

PaulMarshall's avatar

HI @bugsysha thanks for your reply, yes I and think that's something to do with it as we're deploying to Laravel Vapor and weirdly the only way I've managed to 'bust' the cache consistently each time is add or remove files in the public directory which seems to result in it all being 're-loaded'

Kind of weird workaround but there you go!

bugsysha's avatar

🤦🏻‍♂️😂

Anyway glad you figured it out 😁

Please or to participate in this conversation.