Answer the question
In order to leave comments, you need to log in
How to force the browser to update the js and css files on the Lararel site after they have been updated on the production server?
Good afternoon. Webpack has the ability to set the version of compiled css and js files (Laravel5) and everything works great on the local server. But when you upload the project files to the server, the css and js files are updated only after the browser history is reset (Ctrl+F5). Tell me how to solve this problem?
Answer the question
In order to leave comments, you need to log in
You're fine, it's just cache.
For the simplest deployment (let's say stupidly git pull) use something like this .
Modify this script to suit your needs.
Well, and so, of course, during the deployment, you need to forcibly clear all caches, then the changes will be visible.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question