What does changing config.assets.version number do?

久未见 提交于 2019-12-06 22:02:36

问题


What does changing config.assets.version number do?

I understand that the assets expire (as it is written in the comments) but what does it do in the background?

would it delete all the compiled assets? or does it take that version number and uses it somewhere else?


回答1:


It will precompile assets with another fingerprints (the code appendend to the file name), making all the client's browsers download the files again.

In other words, as you said, it expires the caches in the client's browsers.



来源:https://stackoverflow.com/questions/13171647/what-does-changing-config-assets-version-number-do

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!