Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails does not update the fingerprint for some assets

I notice there is a weird thing going on in rails 4.2.0. I am using the default dev environment. When I change some of my JS files, the fingerprint does not change and it keeps serving the old file. The weird thing is that this does not happen to all my JS/CSS files. I tried rebooting my machine and restarting rails server. None of them worked. Renaming the file works, but when I rename it back to the old one, it starts serving the old version again. Anyone has an idea why?

like image 283
Flmhdfj Avatar asked Nov 22 '22 02:11

Flmhdfj


1 Answers

Make sure to set config.serve_static_files = false in your config/environments/development.rb and to reset your browser cache.

like image 166
doug Avatar answered Mar 06 '23 04:03

doug