Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

189
Views
Laravel vue files requiring hard-refresh even when caching implemented

this issue has been plaguing my large production website for a while now.

My app.js (compiled by webpack) has multiple Vue components in it:

Vue.component(
    'product-import', 
    () => import(
        /* webpackChunkName: "product-import" */
        './components/product_import/ProductImport.vue'
    )
);

Whenever I add a new component to this file, and push my code to production... every single Vue module appears blank. The only way to solve this issue is to either:

1: Every user hard refresh the browser's cache (Ctr, Shift, R)

2: Rename EVERY SINGLE vue componenets (let's say from <clock></clock> to <clock2></clock2>) referenced in every file on my website.

I have versioning enabled mix.js('resources/assets/js/app.js', 'public/js/app2.js').version();

And I've even tried renaming the app.js file, yet each time I add a new component it requires a hard refresh from every one of our users for them to be able to see any Vue module again on our site.

This deters me from adding new Vue components, as I have to rename every single component (and sub-component) referenced in all files. Does anyone have a fix for this?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!