更改config.assets.version号有什么作用? [英] What does changing config.assets.version number do?

查看:67
本文介绍了更改config.assets.version号有什么作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更改config.assets.version号有什么作用?

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?

推荐答案

它将使用其他指纹(代码名称后面的代码)预编译资产,从而使所有客户端的浏览器再次下载文件.

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.

这篇关于更改config.assets.version号有什么作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆