没有Ctrl + F5,网站将无法在浏览器中更新 [英] Website won't update in browser without Ctrl + F5

查看:46
本文介绍了没有Ctrl + F5,网站将无法在浏览器中更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行一个仅包含HTML和CSS的基本网站.每当我将新文件推送到网站时,直到执行CTRL + F5(硬刷新)后,新文件才会显示在浏览器中.有人可以帮我吗?

I'm running a basic website with just HTML and CSS. Whenever I push new files to the website, the new files won't show up in the browser until I do a CTRL + F5 (hard refresh). Can anybody help me with this?

推荐答案

很有可能,您的浏览器正在缓存网站上的内容.下次访问时,它将显示本地的缓存副本(除非您硬刷新"它).

Most likely, your browser is caching the content of your website when you visit it. The next time you visit, it will show the local, cached copy (unless you "hard-refresh" it).

检查是否有任何与缓存相关的元标记在您的页面中,查看是否使用无缓存标记会有所帮助.

Check if you have any cache-related meta tags in your pages, and see if using a no-cache tag would help.

这篇关于没有Ctrl + F5,网站将无法在浏览器中更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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