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 不会立即更新


- 如何使用 JSON 格式的 jQuery AJAX 从 .cfm 页面输出查 2022-01-01
- Quasar 2+Apollo:错误:找不到ID为默认的Apollo客户端。如果您在组件设置之外,请使用ProvideApolloClient() 2022-01-01
- addEventListener 在 IE 11 中不起作用 2022-01-01
- Fetch API 如何获取响应体? 2022-01-01
- Flexslider 箭头未正确显示 2022-01-01
- 使用RSelum从网站(报纸档案)中抓取多个网页 2022-09-06
- Css:将嵌套元素定位在父元素边界之外一点 2022-09-07
- 失败的 Canvas 360 jquery 插件 2022-01-01
- CSS媒体查询(最大高度)不起作用,但为什么? 2022-01-01
- 400或500级别的HTTP响应 2022-01-01