javascript中的更改,css不会在发布模式下第一次反映在浏览器中 [英] changes in javascript ,css not reflect first time in browser in release mode

查看:39
本文介绍了javascript中的更改,css不会在发布模式下第一次反映在浏览器中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





当我们在css和javascript中进行更改时,它不会在实时系统发布模式下第一次在浏览器中反映出来。我们需要刷新页面,然后它反映了change.is他们的任何解决方案。

Hi,

When we make changes in css and javascript then it is not reflect first time in browser on live system release mode.we need to refresh the page,then it reflects the changes.is their any solution.

推荐答案

你应该对这些文件进行版本化,以便每次浏览器加载你的网站时,它会认为这些是新文件。



阅读 - 自动JS,CSS版本控制,以便在文件更改时更新浏览器缓存 [ ^ ]。
You should versionize this files so that, each time browser loads your website, it will think that these are new files.

Read - Automatic JS, CSS Versioning to Update Browser Cache when Files are Changed[^].


这篇关于javascript中的更改,css不会在发布模式下第一次反映在浏览器中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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