<form id="dlljd"></form>
        <address id="dlljd"><address id="dlljd"><listing id="dlljd"></listing></address></address>

        <em id="dlljd"><form id="dlljd"></form></em>

          <address id="dlljd"></address>
            <noframes id="dlljd">

              聯系我們 - 廣告服務 - 聯系電話:
              您的當前位置: > 關注 > > 正文

              什么是瀏覽器緩存?如何在所有主要瀏覽器中清除瀏覽器緩存?

              來源:CSDN 時間:2023-01-30 08:47:41

              When fixing common WordPress errors, one common piece of advice that you would often receive is to “clear your browser cache”.

              修復常見的WordPress錯誤時 ,您經常會收到的一條常見建議是“清除瀏覽器緩存”。


              【資料圖】

              Since you don’t need to clear browser cache for day to day internet use, most non-techy users are not familiar with the process.

              由于您不需要為日常使用的互聯網清除瀏覽器緩存,因此大多數非技術人員都不熟悉該過程。

              In this beginner’s guide, we will show you how to quickly clear your browser cache in all major browsers, step by step. We will also explain what is browser cache and how browser caching works.

              在此初學者指南中,我們將逐步向您展示如何在所有主要瀏覽器中快速清除瀏覽器緩存。 我們還將解釋什么是瀏覽器緩存以及瀏覽器緩存的工作方式。

              什么是瀏覽器緩存? (What is Browser Cache?)

              Browser cache is a technology used by most popular web browsers to save visited website’s data on a user’s computer. This allows the browser to quickly display a webpage on your next visit.

              瀏覽器緩存是最流行的Web瀏覽器使用的一種技術,用于將訪問過的網站的數據保存在用戶的計算機上。 這使瀏覽器可以在您下次訪問時快速顯示網頁。

              The logic behind it is that downloading static files from a WordPress hosting server located far away will take more time than reusing the resources from the user’s computer. This reduces the overall page load time and makes your online experience faster.

              其背后的邏輯是,與重用用戶計算機中的資源相比,從遠處的WordPress托管服務器下載靜態文件將花費更多時間。 這樣可以減少整體頁面加載時間,并使您的在線體驗更快。

              Typically browsers will not cache complete web pages unless the web developers specifically tell them to do it (via code). Instead browsers focus on static content like stylesheets, images, and JavaScript.

              通常,瀏覽器不會緩存完整的網頁,除非Web開發人員明確指示他們(通過代碼)這樣做。 相反,瀏覽器專注于樣式表,圖像和JavaScript等靜態內容。

              Why browsers cache static content?

              為什么瀏覽器緩存靜態內容?

              Browser cache static content because it does not change as often as dynamic content.

              瀏覽器緩存靜態內容,因為它不會像動態內容那樣頻繁地更改。

              For example, if you visit a WordPress website then the content of your posts and pages is more likely to change than your WordPress theme.

              例如,如果您訪問WordPress網站,則與WordPress主題相比,帖子和頁面的內容更有可能發生變化。

              A typical website template includes several stylesheets, JavaScript files, and images. These files remain the same on each page, so downloading a fresh copy on every page load is simply inefficient.

              一個典型的網站模板包括幾個樣式表,JavaScript文件和圖像。 這些文件在每個頁面上都保持不變,因此在每次加載頁面時下載新副本的效率很低。

              This is why browsers keep a copy of these static files in a temporary storage folder on your computer, so they use that copy on your next website visit.

              這就是為什么瀏覽器將這些靜態文件的副本保留在您計算機上的臨時存儲文件夾中,以便它們在您下次訪問網站時使用該副本。

              If you are using a WordPress caching plugin, then it may add guidelines for browsers to cache your static content along with expiration instructions for each resource type.

              如果您使用的是WordPress緩存插件 ,則它可能會為瀏覽器添加一些準則,以供瀏覽器緩存您的靜態內容以及每種資源類型的過期說明。

              This improves user experience and makes the internet faster for everyone.

              這樣可以改善用戶體驗,并使所有人的互聯網速度更快。

              Why and when you need to clear browser cache?

              為什么以及何時需要清除瀏覽器緩存?

              Most popular browsers are smart about deciding which content to store in cache.

              大多數流行的瀏覽器都很聰明地決定要存儲在緩存中的內容。

              However, sometimes they are unable to figure out that the website you are viewing has changed. In that case, browsers will still load the cached version of files from local storage.

              但是,有時他們無法確定您正在查看的網站已更改。 在這種情況下,瀏覽器仍將從本地存儲加載文件的緩存版本。

              This leads you to see an outdated version of a web page, and the website may not work as intended. If you have made some changes to your website, then you may not see them appear on the live site.

              這會導致您看到網頁的過時版本,并且該網站可能無法正常工作。 如果您對網站進行了某些更改,則可能看不到它們出現在實時網站上。

              This is when you need to force reload that page in other words clear your browser cache.

              在這種情況下,您需要強制重新加載該頁面,換句話說,清除瀏覽器緩存。

              Force browser to refresh / reload a page (Shortcut)強制瀏覽器刷新/重新加載頁面(快捷方式) Clearing browser cache in Google Chrome在Google Chrome中清除瀏覽器緩存 Clearing browser cache in Firefox在Firefox中清除瀏覽器緩存 Clearing browser cache in Internet Explorer在Internet Explorer中清除瀏覽器緩存 Clearing browser cache in Edge在Edge中清除瀏覽器緩存 Clearing browser cache in Safari在Safari中清除瀏覽器緩存 Clearing browser cache in Opera在Opera中清除瀏覽器緩存 What to do when clearing browser cache doesn’t fix the problem?清除瀏覽器緩存無法解決問題時該怎么辦?

              強制瀏覽器硬刷新/重新加載頁面 (Forcing Browsers to Hard Refresh / Reload a Page)

              Before you clear your browser cache, you may want to try this step because it’s much faster and easier (this is what the Pros do).

              在清除瀏覽器緩存之前,您可能需要嘗試此步驟,因為它更快,更輕松(這是專業人士所做的)。

              Basically, when you click on the refresh button in your browser, it will load static content from browser cache. However by using a keyboard shortcut, you can force the browser to bypass cache and download a fresh version of the web page.

              基本上,當您單擊瀏覽器中的刷新按鈕時,它將從瀏覽器緩存中加載靜態內容。 但是,通過使用鍵盤快捷鍵,您可以強制瀏覽器繞過緩存并下載網頁的新版本。

              Simply press the following keys to force a hard refresh in your web browser.

              只需按以下鍵,即可在Web瀏覽器中強制硬刷新。

              Google Chrome on Mac: Command + Shift + RMac上的Google Chrome:Command + Shift + R Google Chrome on Windows & Linux: CTRL + F5Windows和Linux上的Google Chrome瀏覽器:CTRL + F5 Firefox on Mac: Command + Shift + RMac上的Firefox:Command + Shift + R Firefox on Windows & Linux: CTRL + F5Windows和Linux上的Firefox:CTRL + F5 Safari: Command + Option + RSafari:Command + Option + R Opera on Mac: Command + Alt + RMac上的Opera:Command + Alt + R Opera on Windows: Shift + F5Windows上的Opera:Shift + F5

              Normally forcing a hard refresh will solve your problem. However if it dose not, then you need to clear your browser cache to make sure that you are seeing the live version of a web page.

              通常,強制硬刷新將解決您的問題。 但是,如果不這樣做,那么您需要清除瀏覽器緩存以確保您看到的是實時網頁。

              在Google Chrome中清除瀏覽器緩存 (Clearing Browser Cache in Google Chrome)

              Google Chrome is the most popular browser in the world right now. Here is how to clean the browser cache in Google Chrome.

              Google Chrome瀏覽器是目前世界上最受歡迎的瀏覽器。 以下是在Google Chrome瀏覽器中清除瀏覽器緩存的方法。

              Simply launch the Google Chrome web browser on your computer and then click on the three-dot menu in the top right corner. From the menu, you need to go to More Tools ? Clear Browsing Data.

              只需在計算機上啟動Google Chrome瀏覽器,然后單擊右上角的三點菜單即可。 從菜單中,您需要轉到更多工具?清除瀏覽數據。

              This will launch the Chrome Settings page with ‘Clear Browsing Data’ popup displayed on the screen. You need to switch to the Basic settings and then select ‘All time’ next to time-range option.

              這將啟動Chrome設置頁面,并在屏幕上顯示“清除瀏覽數據”彈出窗口。 您需要切換到基本設置,然后在時間范圍選項旁邊選擇“所有時間”。

              Below that, you need to check the box next to the ‘Cached images and files’ option.

              在此之下,您需要選中“緩存的圖像和文件”選項旁邊的框。

              You can also select ‘Clear cookies and other site data’ option. It will delete all cookies stored in your browser storage. Doing so will also log you out from all websites and end other sessions.

              您還可以選擇“清除Cookie和其他站點數據”選項。 它將刪除瀏覽器存儲中存儲的所有cookie。 這樣做還將使您退出所有網站并結束其他會話。

              Next, click on the ‘Clear data’ button and Google Chrome will clear the browser cache.

              接下來,點擊“清除數據”按鈕,然后Google Chrome瀏覽器將清除瀏覽器緩存。

              在Firefox中清除瀏覽器緩存 (Clearing Browser cache in Firefox)

              If you are using Mozilla Firefox, then this is how you can clear your browser cache.

              如果您使用的是Mozilla Firefox,那么這就是清除瀏覽器緩存的方法。

              First, you need to launch the Firefox web browser on your computer. After that, you need to click on the hamburger menu on the top-right corner of the screen and select the ‘Preferences’ option.

              首先,您需要在計算機上啟動Firefox Web瀏覽器。 之后,您需要點擊屏幕右上角的漢堡菜單,然后選擇“偏好設置”選項。

              This will bring up the Firefox settings page. From here, you need to switch to the ‘Privacy and Security’ tab, and then click on the ‘Clear Data’ button.

              這將打開Firefox設置頁面。 從這里,您需要切換到“隱私和安全性”選項卡,然后單擊“清除數據”按鈕。

              Firefox will now ask what data do you want to clear. You need to select ‘Cached Web Content’ and click on the clear button.

              Firefox現在將詢問您要清除哪些數據。 您需要選擇“緩存的Web內容”,然后單擊清除按鈕。

              Firefox will now delete cached web content from your browser storage.

              Firefox現在將從您的瀏覽器存儲中刪除緩存的Web內容。

              在Internet Explorer中清除瀏覽器緩存 (Clearing Browser Cache in Internet Explorer)

              Internet Explorer was the default web browser on Windows computers until it was replaced by the new Microsoft Edge browser.

              Internet Explorer是Windows計算機上的默認Web瀏覽器,直到被新的Microsoft Edge瀏覽器取代。

              However, many users still use it. If you are one of those users, then this is how you’ll clear browser cache in Internet Explorer.

              但是,許多用戶仍在使用它。 如果您是這些用戶之一,那么這就是在Internet Explorer中清除瀏覽器緩存的方法。

              First, you need to launch the Internet Explorer on your computer. After, that you need to click on the gear icon at the top right corner and then select Safety ? Delete browsing history….

              首先,您需要在計算機上啟動Internet Explorer。 之后,您需要單擊右上角的齒輪圖標,然后選擇安全?刪除瀏覽歷史記錄…。

              Next, you need to uncheck the option to ‘Preserve Favorites website data’, check ‘Temporary internet files’, and optionally check the ‘Cookies’ option.

              接下來,您需要取消選中“保留收藏夾網站數據”的選項,選中“臨時Internet文件”,并選擇選中“ Cookies”選項。

              Click on the Delete button to continue, and Internet Explorer will empty your browser cache.

              單擊刪除按鈕繼續,然后Internet Explorer將清空瀏覽器緩存。

              在Edge中清除瀏覽器緩存 (Clearing Browser cache in Edge)

              Edge is the default browser on Windows 10 computers. Here is how you will clear browser cache in Microsoft Edge.

              Edge是Windows 10計算機上的默認瀏覽器。 這是清除Microsoft Edge中瀏覽器緩存的方法。

              First, you need to open the Edge browser on your computer. After that, you need to click on the three-dot menu at the top-right corner of the screen and select ‘Settings’ option.

              首先,您需要在計算機上打開Edge瀏覽器。 之后,您需要單擊屏幕右上角的三點菜單,然后選擇“設置”選項。

              Next, you need to click on the ‘Choose what to clear’ button under the ‘Clear browsing data’ section.

              接下來,您需要點擊“清除瀏覽數據”部分下的“選擇要清除的內容”按鈕。

              This will bring up the ‘Clear browsing data’ panel. From here, you need to select ‘Cached data and files’ and ‘Cookies and website data’ options.

              這將彈出“清除瀏覽數據”面板。 在這里,您需要選擇“緩存的數據和文件”以及“ Cookie和網站數據”選項。

              Click on the ‘Clear’ button and Microsoft Edge will now clear browser cache.

              單擊“清除”按鈕,Microsoft Edge現在將清除瀏覽器緩存。

              在Safari中清除瀏覽器緩存 (Clearing Browser Cache in Safari)

              Safari is the default browser on the Mac operating system. Here is how to clear browser cache in Safari.

              Safari是Mac操作系統上的默認瀏覽器。 這是在Safari中清除瀏覽器緩存的方法。

              First, you need to open the Safari web browser on your computer. After that. click on the History ? Clear History…option from the top menu.

              首先,您需要在計算機上打開Safari Web瀏覽器。 之后。 單擊頂部菜單中的“ 歷史記錄?清除歷史記錄...”選項。

              Safari will now ask you to select a time range. Select ‘All history’ from the ‘Clear’ dropdown menu and then click on the ‘Clear History’ button.

              Safari現在將要求您選擇一個時間范圍。 從“清除”下拉菜單中選擇“所有歷史記錄”,然后單擊“清除歷史記錄”按鈕。

              Safari will now delete all temporary data including cache, cookies, and all temporary website data.

              Safari現在將刪除所有臨時數據,包括緩存,Cookie和所有臨時網站數據。

              If you want to empty the Safari cache without deleting cookies and other data, then you will need to enable the ‘Developer’ menu.

              如果要清空Safari緩存而不刪除Cookie和其他數據,則需要啟用“開發人員”菜單。

              Simply click on the Safari ? Preferencesfrom the top menu. This will bring up the settings dialog box where you need to switch to the ‘Advanced’ tab.

              只需從頂部菜單中單擊Safari?首選項。 這將彈出設置對話框,您需要在其中切換到“高級”選項卡。

              This will add the ‘Develop’ menu in your web browser’s top bar. Next, you need to click on the Develop menu and select ‘Empty Caches’ option.

              這將在網絡瀏覽器的頂部欄中添加“開發”菜單。 接下來,您需要單擊“開發”菜單,然后選擇“空緩存”選項。

              Safari will now only empty the browser cache without deleting cookies and other temporary data.

              Safari現在只會清空瀏覽器緩存,而不會刪除Cookie和其他臨時數據。

              在Opera中清除瀏覽器緩存 (Clearing Browser Cache in Opera)

              If you are using Opera web browser, then here is how to clear your browser cache in Opera.

              如果您使用的是Opera網絡瀏覽器,那么以下是在Opera中清除瀏覽器緩存的方法。

              Fist, open the Opera web browser on your computer. After that, click on the menu icon on the top right corner of the screen and then click on the ‘Clear browsing data’ button.

              拳頭,打開計算機上的Opera Web瀏覽器。 之后,點擊屏幕右上角的菜單圖標,然后點擊“清除瀏覽數據”按鈕。

              This will bring up a popup on the screen. From here, first you need to select ‘All time’ next to the time range dropdown menu. After that, check the box next to the ‘Cached images and files’ option.

              這將在屏幕上彈出一個彈出窗口。 首先,您需要在時間范圍下拉菜單旁邊選擇“所有時間”。 之后,選中“緩存的圖像和文件”選項旁邊的框。

              You can now click on the ‘Clear data’ button, and Opera will empty your browser cache.

              現在,您可以單擊“清除數據”按鈕,Opera將清空瀏覽器緩存。

              清除瀏覽器緩存不起作用時該怎么辦? (What to Do When Clearing Browser Cache Doesn’t Work?)

              It depends on what you are trying to do at the moment. Let’s take a look at some common scenarios.

              這取決于您當前要執行的操作。 讓我們看一些常見的場景。

              1. Can’t see changes you made to your website appear on the live site

              1.無法看到您對網站所做的更改顯示在實時網站上

              The most common culprit for this usually a WordPress caching plugin. Normally, if you are logged in to WordPress, then your caching plugin would show you a non-cached version of your website.

              最常見的罪魁禍首通常是WordPress緩存插件。 通常,如果您登錄WordPress ,則您的緩存插件將為您顯示網站的非緩存版本。

              However, due to a plugin misconfiguration, you may end up seeing a cached version of your website.

              但是,由于插件配置錯誤,您最終可能會看到網站的緩存版本。

              You’ll need to empty WordPress cache to see the live version. We have a detailed guide on how to clear cache in WordPress with step by step instructions.

              您需要清空WordPress緩存才能看到實時版本。 我們有詳細的指南,指導您如何逐步清除WordPress中的緩存 。

              2. I cannot log in to my WordPress website

              2.我無法登錄我的WordPress網站

              If you are unable to log in to your WordPress website and the login page keeps refreshing, then most likely it is a WordPress settings issue.

              如果您無法登錄WordPress網站并且登錄頁面不斷刷新,則很可能是WordPress設置問題。

              See our detailed guide on how to fix WordPress login page refresh and redirecting issue.

              請參閱有關如何解決WordPress登錄頁面刷新和重定向問題的詳細指南。

              3. A third party website is not updating

              3.第三方網站未更新

              If you are seeing an outdated version of a third-party website while other users can see the changes, then this could happen due to a lot of reasons.

              如果您看到的是第三方網站的過時版本,而其他用戶可以看到更改,則可能由于多種原因而發生。

              For example, the website may be temporarily down, and their CDN server is showing a cached copy of the website. It is also possible that their website firewall is not working properly, and it’s serving the cached versions to specific geographic locations.

              例如,網站可能暫時關閉,其CDN服務器正在顯示網站的緩存副本。 他們的網站防火墻也可能無法正常工作,并且正在將緩存的版本提供給特定的地理位置。

              In that case, you can try using a VPN service. This will allow you to change your IP address and visit the website from a different geographic location.

              在這種情況下,您可以嘗試使用VPN服務 。 這將允許您更改IP地址并從其他地理位置訪問網站。

              This will help you further troubleshoot and get to the bottom of the issue.

              這將幫助您進行進一步的故障排除并深入了解問題的根源。

              We hope this article helped you learn how to quickly clear your browser cache in all top browsers. You may also want to see our WordPress troubleshooting tips and the complete WordPress security guide to keep your website secure.

              我們希望本文能幫助您學習如何在所有頂級瀏覽器中快速清除瀏覽器緩存。 您可能還想查看我們的WordPress故障排除提示和完整的WordPress安全指南,以確保您的網站安全。

              If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

              如果您喜歡這篇文章,請訂閱我們的YouTube頻道 WordPress視頻教程。 您也可以在Twitter和Facebook上找到我們。

              責任編輯:

              標簽:

              相關推薦:

              精彩放送:

              新聞聚焦
              Top 中文字幕在线观看亚洲日韩