Ask A Question


You’re not receiving notifications from this thread.

Rails Webpack caching

Stephen Sizer asked in Javascript

I'm having an issue in development where I've changed my main application.js file in /javascript/packs/ and the file is being cached so having a hard time testing new changes. Does anyone else have this issue?



How are you loading the application.js file into your app? What command do you use to run your Rails (and webpack?) server locally?


Found the issue! It was due to my environment file in webpacker causing the assets to not be recompiled.

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 73,895+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

    © 2023 GoRails, LLC. All rights reserved.