inertia-laravel icon indicating copy to clipboard operation
inertia-laravel copied to clipboard

Browser cache controlling

Open mecomedia opened this issue 2 years ago • 0 comments

For a browser refresh after a release it would be better to check the file change date of the file "mix-manifest.json" than make md5 of its content. The following code in the "Middleware.json" makes a complete refresh even the content is the same. It solves my caching problems.

if (file_exists($manifest = public_path('mix-manifest.json'))) { return filectime($manifest); }

mecomedia avatar Nov 15 '23 10:11 mecomedia