浏览器无法识别javascript文件中的更改 [英] Changes in javascript file is not recognised by browser
问题描述
我正在研究ASP.NET 1.1项目.在项目中,我正在使用JavaScript.当我尝试在任何JavaScript文件中添加一些新功能时,在某些系统上,浏览器无法识别它(在IE 6.0和IE 7.0上测试) .
但是,为克服此问题,我已重命名了JavaScript文件名并且可以使用,但是对生产中使用的大量文件执行此操作是有风险的.
如果有人有任何想法,我请您与我们分享.
非常感谢.
Anuranjan Srivastav.
Hi,
I am working on ASP.NET 1.1 project.In project I am using JavaScript.When I am trying to add some new functionality in any JavaScript file,Its it not being recognized by browser(Tested on IE 6.0 and IE 7.0) on some systems.
However to overcome this problem I have renamed the JavaScript file name and it works,but doing it for large number of files used on production is a risky.
If anyone has any idea,I request you to share with us.
Many Thanks in advance.
Anuranjan Srivastav.
推荐答案
这可能是一个缓存问题.您可以通过在浏览器中按Ctrl + F5来确认这一点,看看是否反映了所做的更改.如果Ctrl + F5起作用,则需要检查是否已为应用程序启用JavaScript缓存.
It can be a caching issue. You can confirm this by hitting Ctrl+F5 on the browser and see if the changes are reflected or not. If Ctrl+F5 works, you need to check if you have enabled JavaScript caching for your application.
这篇关于浏览器无法识别javascript文件中的更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!