{"action":"opened","issue":{"url":"https://api.github.com/repos/whatcould/webshims-rails/issues/21","labels_url":"https://api.github.com/repos/whatcould/webshims-rails/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/whatcould/webshims-rails/issues/21/comments","events_url":"https://api.github.com/repos/whatcould/webshims-rails/issues/21/events","html_url":"https://github.com/whatcould/webshims-rails/issues/21","id":60411801,"number":21,"title":"Without fingerprinting browser caches are still loading old versions with Modernizr","user":{"login":"jeremywadsack","id":241324,"avatar_url":"https://avatars.githubusercontent.com/u/241324?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremywadsack","html_url":"https://github.com/jeremywadsack","followers_url":"https://api.github.com/users/jeremywadsack/followers","following_url":"https://api.github.com/users/jeremywadsack/following{/other_user}","gists_url":"https://api.github.com/users/jeremywadsack/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremywadsack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremywadsack/subscriptions","organizations_url":"https://api.github.com/users/jeremywadsack/orgs","repos_url":"https://api.github.com/users/jeremywadsack/repos","events_url":"https://api.github.com/users/jeremywadsack/events{/privacy}","received_events_url":"https://api.github.com/users/jeremywadsack/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-09T21:19:34Z","updated_at":"2015-03-09T21:19:34Z","closed_at":null,"body":"Related to #17, when we deployed with the latest version, we get tons of JS errors reporting \"Modernizr is undefined.\" We are not using Modernizr at all and this is coming from webshim `combos/3.js`. It seems that the JS file is being cached by the browser and then trying to load Modernizr which no longer exists. \r\n\r\nWould it be possible to use a cache-busting _route_ in rails that would change the path to the combos loaded by the browser if the content changed? e.g.\r\n\r\n```\r\n$.webshims.setOptions('basePath', '#{webshims_path}')\r\n```\r\n\r\nOr maybe as simple as having the route include the gem version number, which should be close enough to matching changes content for gem-provided assets."}}