welaika/wordless — pull request #99 by jcartledge (2012-07-15 11:22:37+00:00)
Title: Use file contents as hash seed for cache

Hi. Thanks for wordless, I love it.

I had trouble deploying my site to heroku because the filemtime gets set on all the files during deployment which breaks the asset caching. The obvious fix for this is to generate the cache hash from the asset file contents instead of filepath + filemtime, and it seems like that's how this used to work (see https://github.com/welaika/wordless/commit/f136277387e3416e95247495902967f460799db9#commitcomment-1011805)

Is there a reason why this is a bad idea?

(Possible related issue: #39)