You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My use case is, I have a js config file which will use rails setting variables. So I embedded a ruby statement in my js file and append the file with .erb extension. It works well for the first time, but when I change the variables, this js file cannot be re compiled, or technically it re compiled with the same fingerprint digest and when serving to browser, browser find the digest is the same as the cached one so it only uses the cached version which is not actually up to date.
Expected behavior
js file with erb extension should be re compiled and the fingerprint should be different based on the content of the embedded variable. If I have such a sentence in the code <%= ENV['MY_SETTING'] %>, when the actual MY_SETTING variable changes, the fingerprint digest should also change.
Actual behavior
The digest does not change even if the MY_SETTING variable changes.
System configuration
sprockets-rails 3.1.1
ruby 2.2.1p85
The text was updated successfully, but these errors were encountered:
My use case is, I have a js config file which will use rails setting variables. So I embedded a ruby statement in my js file and append the file with .erb extension. It works well for the first time, but when I change the variables, this js file cannot be re compiled, or technically it re compiled with the same fingerprint digest and when serving to browser, browser find the digest is the same as the cached one so it only uses the cached version which is not actually up to date.
Expected behavior
js file with erb extension should be re compiled and the fingerprint should be different based on the content of the embedded variable. If I have such a sentence in the code <%= ENV['MY_SETTING'] %>, when the actual MY_SETTING variable changes, the fingerprint digest should also change.
Actual behavior
The digest does not change even if the MY_SETTING variable changes.
System configuration
The text was updated successfully, but these errors were encountered: