{"action":"created","issue":{"url":"https://api.github.com/repos/rails/sprockets-rails/issues/239","labels_url":"https://api.github.com/repos/rails/sprockets-rails/issues/239/labels{/name}","comments_url":"https://api.github.com/repos/rails/sprockets-rails/issues/239/comments","events_url":"https://api.github.com/repos/rails/sprockets-rails/issues/239/events","html_url":"https://github.com/rails/sprockets-rails/pull/239","id":70542039,"number":239,"title":"adding \"nodigest\" task to add non digest assets","user":{"login":"celsodantas","id":408219,"avatar_url":"https://avatars.githubusercontent.com/u/408219?v=3","gravatar_id":"","url":"https://api.github.com/users/celsodantas","html_url":"https://github.com/celsodantas","followers_url":"https://api.github.com/users/celsodantas/followers","following_url":"https://api.github.com/users/celsodantas/following{/other_user}","gists_url":"https://api.github.com/users/celsodantas/gists{/gist_id}","starred_url":"https://api.github.com/users/celsodantas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/celsodantas/subscriptions","organizations_url":"https://api.github.com/users/celsodantas/orgs","repos_url":"https://api.github.com/users/celsodantas/repos","events_url":"https://api.github.com/users/celsodantas/events{/privacy}","received_events_url":"https://api.github.com/users/celsodantas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-23T23:44:05Z","updated_at":"2015-04-24T16:16:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rails/sprockets-rails/pulls/239","html_url":"https://github.com/rails/sprockets-rails/pull/239","diff_url":"https://github.com/rails/sprockets-rails/pull/239.diff","patch_url":"https://github.com/rails/sprockets-rails/pull/239.patch"},"body":"## Problem\r\n\r\nThis gem does not generate non-digest files anymore.\r\n\r\nA lot of apps still need the non-digest because some of their assets belongs to an SDK that they need to serve it outside of their application (e.g. like what Shopify [does] (https://docs.shopify.com/embedded-app-sdk/initialization)). For that they need to have a constant URI for their assets.\r\n\r\nThere's  alternative like the [non-stupid-digest-assets](https://github.com/alexspeller/non-stupid-digest-assets) but I feel like this should be built-in as it's a more common pattern.\r\n\r\n## Solution\r\n\r\nJust copy existing files without the digest part of the name.\r\n\r\n## Limitation\r\n\r\nAs we are not recompiling the file, any external file reference (image references) will still contain digested references. This is not a problem as the use case for this feature is to use the asset file as part of a SDK to be served to other developers, so references to digested files are OK.\r\n\r\n## But, but... what about cache expiration?\r\n\r\nThat's a different problem for the developer to solve per asset file. The idea behind this is to enable the developer to generate a few non-digested files, not to serve the entire application assets.\r\n\r\nAs this not rake task is not run by default during `assets:precompile` the cache issue is another problem. This is an explicit action for a common and punctual problem.\r\n\r\ncc @rafaelfranca @arthurnn for discussion\r\nRelated: #49 "},"comment":{"url":"https://api.github.com/repos/rails/sprockets-rails/issues/comments/95982307","html_url":"https://github.com/rails/sprockets-rails/pull/239#issuecomment-95982307","issue_url":"https://api.github.com/repos/rails/sprockets-rails/issues/239","id":95982307,"user":{"login":"celsodantas","id":408219,"avatar_url":"https://avatars.githubusercontent.com/u/408219?v=3","gravatar_id":"","url":"https://api.github.com/users/celsodantas","html_url":"https://github.com/celsodantas","followers_url":"https://api.github.com/users/celsodantas/followers","following_url":"https://api.github.com/users/celsodantas/following{/other_user}","gists_url":"https://api.github.com/users/celsodantas/gists{/gist_id}","starred_url":"https://api.github.com/users/celsodantas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/celsodantas/subscriptions","organizations_url":"https://api.github.com/users/celsodantas/orgs","repos_url":"https://api.github.com/users/celsodantas/repos","events_url":"https://api.github.com/users/celsodantas/events{/privacy}","received_events_url":"https://api.github.com/users/celsodantas/received_events","type":"User","site_admin":false},"created_at":"2015-04-24T16:16:33Z","updated_at":"2015-04-24T16:16:33Z","body":"Documentation added to README. "}}