旧的 javascript 和 CSS 文件被加载 [英] Old javascript and CSS file gets loaded
本文介绍了旧的 javascript 和 CSS 文件被加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 LAMP 堆栈开发一个简单的 php 网站.很多时候,当我编辑 javascript 文件时,经过编辑的新文件不会显示在 chrome 的调试器或 firebug 中.同样,当我编辑一个 css 文件时,旧的 css 文件被加载.我什至重命名了旧的 css 文件,仍然加载了旧文件.它是否被缓存在某处?我什至尝试重新启动服务器.
I am developing a simple php website using LAMP stack. Lot of the times, when I edit a javascript file, the new file with edits do not show up in chrome's debugger or in firebug. In the same way, when I edited a css file, the old css file gets loaded. I even renamed the old css file, still the old file gets loaded. Is it being cached somewhere? I even tried restarting the server.
推荐答案
按住 shift 并单击重新加载以强制 Chrome 从服务器加载所有文件.
Hold shift and click reload to force Chrome to load all files from the server.
这篇关于旧的 javascript 和 CSS 文件被加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文