Skip to content

Instantly share code, notes, and snippets.

@DanBradbury
Last active August 29, 2015 13:56
Show Gist options
  • Save DanBradbury/8852791 to your computer and use it in GitHub Desktop.
Save DanBradbury/8852791 to your computer and use it in GitHub Desktop.
Rails 2 Asset issue

When assets are being served (all properly) we get /javascripts/effects.js?83bb2c8dc7fb2ebd34943d7e86f73878df78abdd


However when we get a bad load (with the two files not including their extension) the same file is returned as follows /javascripts/effects.js?eb1dd1c52ca577a5ade625f0560dcad09939207f

Obviously there are two different fingerprints being added to the end of the same file.

The issue with the missing files came up because of extensions not being added to the file

<%= stylesheet_link_tag jquery-1.8.88.custom %>

Some more information about those "fingerprints" are that they correspond with the github ref to previous release versions. Not sure if there is a convention to add github refs to the end of the filename as a fingerprint in Rails 2 or if there is something much funkier going on

@DanBradbury
Copy link
Author

The other file that is not loading is in a different tag but with another . in the name which I thought was causing the extension issue.

<%= javascript_include_tag cal.basic %>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment