Javascript is cached in development mode with asset pipeline

后端 未结 8 987
感动是毒
感动是毒 2021-02-07 07:53

I recently upgraded my application to rails 3.1 and generally everything seems to be working but one thing is driving me insane.

I have 2 main js files, we\'ll call the

8条回答
  •  一向
    一向 (楼主)
    2021-02-07 08:41

    I had the same issue, config.action_controller.perform_caching set properly. I also use Heroku and precompile assets for the Push to Heroku using: RAILS_ENV=production bundle exec rake assets:precompile After the push, when I started new work, I forgot to remove the precompiled assets using: sudo rm -r public/assets/*

    So, no matter what I did to any of my .js files, they changes were not showing up.

提交回复
热议问题