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.
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 intoconfig.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.