localhost Won#39;t Immediately Update(localhost 不会立即更新)
问题描述
我一直在使用 XAMPP 连接到 localhost 以在我的计算机上为网站进行编辑.我已经使用它一年多了,过去每当我更新本地文件时,我都可以在浏览器上刷新页面,它会立即更新.现在,即使图像文件已更改,我也无法更新它.
I have been using XAMPP to connect to localhost to do editing on my computer for websites. I have been using it for over a year now and in the past whenever I would update the local file, I could refresh the page on my browser and it would immediately update. Now, I can't get it to update even if, for example, an image file has changed.
我想知道这是否是 cookie 的问题(我过去没有遇到过).发生这种情况有共同的原因吗?我在搜索中找不到任何东西.感谢您的帮助!
I'm wondering if it's an issue with cookies (which I haven't had in the past). Is there a common reason that this happens? I couldn't find anything upon a search. Thanks for the help!
推荐答案
首先要尝试的是清除浏览器历史记录/缓存并重新加载浏览器.
First thing to try would be clearing browser history/cache and reloading the browser.
如果您启用了某种缓存也可以解释它.
If you enabled some kind of caching that might also explain it.
您可以通过在本地主机上创建一个 new 页面进行测试,看看它是否有效.如果是这样,请检查您在 localhost 上更改的任何页面是否实际正在更新(检查文件修改时间并关闭/重新加载源以查看更改是否确实存在).
You could test by creating a new page on localhost and see if it works. If so, then check that any pages you're changing on localhost are actually being updated (check the file modified times and close/reload the source to see if the changes are actually there).
这篇关于localhost 不会立即更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:localhost 不会立即更新


基础教程推荐
- 为什么我在 Vue.js 中得到 ERR_CONNECTION_TIMED_OUT? 2022-01-01
- 如何使用sencha Touch2在单页中显示列表和其他标签 2022-01-01
- 什么是不使用 jQuery 的经验技术原因? 2022-01-01
- 每次设置弹出窗口的焦点 2022-01-01
- 如何在特定日期之前获取消息? 2022-01-01
- Node.js 有没有好的索引/搜索引擎? 2022-01-01
- WatchKit 支持 html 吗?有没有像 UIWebview 这样的控制器? 2022-01-01
- 如何使用 CSS 显示和隐藏 div? 2022-01-01
- jQuery File Upload - 如何识别所有文件何时上传 2022-01-01
- Javascript 在多个元素上单击事件侦听器并获取目标 2022-01-01