沼泽的HTML脚本不更新 [英] wamp html script not updating

查看:74
本文介绍了沼泽的HTML脚本不更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用wamp在本地运行基于php的Web应用程序.更改.php文件中的html脚本时,页面不会更新.但是,css文件中的更改正在更新.该问题有任何解决方法吗?

I am trying to run a php based web app locally using wamp. On making changes to the html script in .php file, the page does not get updated. However, changes in css files are being updated. Any fixes to the issue?

推荐答案

如果您在查看页面时未反映出代码更改,则可能是浏览器已将其缓存.

If your code changes dont get reflected when you view the page, it has probably been cached by the browser.

始终使用CTRL + F5,以便在进行更改时刷新缓存.

Always use CTRL + F5 so the cache is refreshed when making changes.

或者,大多数浏览器都具有开发人员扩展,并且其中之一通常是关闭缓存的选项.您应该寻找并在开发网站时进行设置.

Alternatively most browsers have developer extension and one of those is usually an option to turn off caching. You should look for that and set it while developing a site.

如何完全禁用FireFox的浏览器缓存?

如何在Internet Explorer 9中禁用缓存?

禁用Chrome缓存进行网站开发

这篇关于沼泽的HTML脚本不更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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