{"action":"closed","issue":{"url":"https://api.github.com/repos/bertramdev/asset-pipeline/issues/259","labels_url":"https://api.github.com/repos/bertramdev/asset-pipeline/issues/259/labels{/name}","comments_url":"https://api.github.com/repos/bertramdev/asset-pipeline/issues/259/comments","events_url":"https://api.github.com/repos/bertramdev/asset-pipeline/issues/259/events","html_url":"https://github.com/bertramdev/asset-pipeline/issues/259","id":88914986,"number":259,"title":"Allow disabling inclusion of cache digest fingerprints in asset file names","user":{"login":"rgoldberg","id":484615,"avatar_url":"https://avatars.githubusercontent.com/u/484615?v=3","gravatar_id":"","url":"https://api.github.com/users/rgoldberg","html_url":"https://github.com/rgoldberg","followers_url":"https://api.github.com/users/rgoldberg/followers","following_url":"https://api.github.com/users/rgoldberg/following{/other_user}","gists_url":"https://api.github.com/users/rgoldberg/gists{/gist_id}","starred_url":"https://api.github.com/users/rgoldberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgoldberg/subscriptions","organizations_url":"https://api.github.com/users/rgoldberg/orgs","repos_url":"https://api.github.com/users/rgoldberg/repos","events_url":"https://api.github.com/users/rgoldberg/events{/privacy}","received_events_url":"https://api.github.com/users/rgoldberg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-06-17T05:23:19Z","updated_at":"2015-06-18T04:51:25Z","closed_at":"2015-06-18T04:51:25Z","body":"Currently, cache digest fingerprints are always inserted into asset file names.\r\n\r\nPlease allow disabling the inclusion of cache digest fingerprints in asset file names, by supporting a `Config.groovy` setting named `grails.assets.enableDigests`.\r\n\r\nI think that this should be able to be achieved by two small changes:\r\n\r\nIn the Grails Asset Pipeline plugin, in `_AssetCompile.groovy`, right after:\r\n\r\n```\r\nassetConfig.skipNonDigests = true\r\n```\r\n\r\ninsert:\r\n\r\n```\r\nif (config.grails.assets.containsKey('enableDigests')) {\r\n\tassetConfig.enableDigests = config.grails.assets.enableDigests\r\n}\r\n```\r\n\r\nor, you could insert the following, instead:\r\n\r\n```\r\nassetConfig.enableDigests = config.grails.assets.containsKey('enableDigests') ? config.grails.assets.enableDigests : true\r\n```\r\n\r\nIn asset-pipeline-core (I know it's a separate GitHub project, but I wanted to keep this all in one issue), in `AssetCompiler#createCompressedFiles(..)`, move the following line:\r\n\r\n```\r\nFile zipFileDigest = new File(\"${digestedFile.getAbsolutePath()}.gz\")\r\n```\r\n\r\nto be directly after:\r\n\r\n```\r\nif(options.enableDigests as Boolean) {\r\n```"}}