localhost 不会立即更新

localhost Won#39;t Immediately Update(localhost 不会立即更新)

本文介绍了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 不会立即更新

基础教程推荐