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 不会立即更新
基础教程推荐
- 如何使用TypeScrip将固定承诺数组中的项设置为可选 2022-01-01
- html表格如何通过更改悬停边框来突出显示列? 2022-01-01
- Chart.js 在线性图表上拖动点 2022-01-01
- Electron 将 Node.js 和 Chromium 上下文结合起来意味着 2022-01-01
- 直接将值设置为滑块 2022-01-01
- 自定义 XMLHttpRequest.prototype.open 2022-01-01
- 如何使用JIT在顺风css中使用布局变体? 2022-01-01
- 我可以在浏览器中与Babel一起使用ES模块,而不捆绑我的代码吗? 2022-01-01
- 用于 Twitter 小部件宽度的 HTML/CSS 2022-01-01
- Vue 3 – <过渡>渲染不能动画的非元素根节点 2022-01-01