Recently, I encountered an issue with my Rails 4 app while deploying it to Heroku. The asset pipeline was minifying the js file and everything seemed fine during development. However, after pushing it to Heroku, I noticed that the js file only worked on certain pages. Specifically, while performing the same AJAX PUT request on different pages, some pages resulted in a 404 error.
PUT http://thawing-thicket-4506.herokuapp.com/scouts/1/reqs 404 (Not Found)
I double-checked the filename, which is
application-5f31b026bf954dbd536069113d4c4345.js
, and confirmed that the version remained consistent across all pages using the file.
I am puzzled by what could be causing this discrepancy. Any suggestions or advice would be greatly appreciated. Feel free to ask for any additional information that might be helpful in diagnosing the issue.