Solve the problem that js files are cached by browsers

1、加版本号<script type="text/javascript" src="/js/common.js?v=1" ></script>

2. Add release time <script type="text/javascript" src="/js/common.js? t=20180428 " ></script>

3. During the development process, timestamps or random numbers can be used

<script type="text/javascript" src="/js/common.js?t={{date("Ymd")}}" ></script> Re-request the server with the date.

<script type="text/javascript" src="/js/common.js?t={{time()}}" ></script> 使用时间戳

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326401321&siteId=291194637