jwhitley / requirejs-rails

RequireJS support for your Rails 3 or 4 application
MIT License
592 stars 202 forks source link

Precompiled asset doesn't generate new digest filename #244

Closed chenxeed closed 9 years ago

chenxeed commented 9 years ago

Hi,

I have a problem when I want to precompile all my changes and upload to production. The thing is, because the digest name of precompiled file is not changed, so my website also still use my old file, cached by cloudflare. This will be a problem because on precompile it should generate new digest filename.

I used this method on my core file : https://github.com/jwhitley/requirejs-rails#layered-builds And I put it into my config.assets.precompile, although I wonder that the warning about this is related or not. Whether I put the file into config.assets.precompile or not, still doesn't change the digest name.

I need to know if there's any way to make the precompiled assets can still have new digest name, as same as normal precompile without requirejs. Thank you very much for your support.