如何在Internet Explorer 10中修改缓存行为
Caching is term used a lot when it comes to technology, here’s a brief introduction to the subject as well as some tips on how to view and edit cached file settings in Internet Explorer.
緩存在技術上經常被使用,這里是對該主題的簡要介紹,以及有關如何在Internet Explorer中查看和編輯緩存文件設置的一些技巧。
什么是緩存? (What is Caching?)
Caching is used in a wide variety of technology, both hardware and software. At the most basic level it is all the same thing, you have an area of memory or space where you can store data that you use regularly. In terms of Internet Browsing, you have some space on the hard drive in your computer where your browser can store media objects that it thinks you will be using over and over again.
緩存被廣泛用于硬件和軟件中的各種技術。 在最基本的層次上,這都是一回事,您擁有一定的內存或空間區域,可以存儲經常使用的數據。 在Internet瀏覽方面,計算機硬盤驅動器上有一些空間,瀏覽器可以用來存儲媒體對象,它認為您將一遍又一遍地使用它。
A common example of this is the favicon.ico file, which is that little picture you see in your tabs. The idea behind it is that it will always be quicker to pull the resource from your hard drive than to download it from the internet, which therefore improves browsing speed. The catch is that if the server changes the file your browser might serve you the old cached file from your hard drive. Here are some settings you can change that will affect?the behavior of the Internet Explorer caching engine, as well as how to see what is cached.
一個常見的示例是favicon.ico文件,它是您在標簽中看到的小圖片。 其背后的想法是,與從Internet上下載資源相比,從硬盤驅動器上提取資源總是總是更快的,因此可以提高瀏覽速度。 問題是,如果服務器更改了文件,則瀏覽器可能會為您提供硬盤驅動器中的舊緩存文件。 您可以更改以下設置,這些設置將影響Internet Explorer緩存引擎的行為以及如何查看緩存的內容。
如何增加Internet Explorer用作緩存的磁盤空間 (How to Increase the Disk Space Internet Explorer Uses as a Cache)
One of the first thing you might want to do is increase or decrease the amount of information IE caches. You should remember that most of the things that it caches are static images, so a lot of the time the default cache size of 250MB is quite large. If you want to change it click on the open the Settings menu and launch Internet options.
您可能要做的第一件事就是增加或減少IE緩存的信息量。 您應該記住,它緩存的大多數東西都是靜態圖像,因此很多時候默認緩存250MB的大小是相當大的。 如果要更改它,請單擊打開設置菜單并啟動Internet選項。
Then click on the Settings button.
然后單擊設置按鈕。
Here you will see the amount of disk space IE uses to cache files. While the default is probably OK for everyday browsing you may want to change it depending on your situation.
在這里,您將看到IE用來緩存文件的磁盤空間量。 盡管對于日常瀏覽而言,默認值可能是確定的,但您可能需要根據具體情況進行更改。
Then click on the OK button.
然后單擊確定按鈕。
如何查看Internet Explorer緩存中的內容 (How to View What is in Your Internet Explorer Cache)
So we have explained what caching is and how you can change the amount of information that gets cached, but how do you see what is cached. Well to do that, again open Internet options.
因此,我們已經解釋了什么是緩存以及如何更改要緩存的信息量,但是如何查看緩存的內容。 為此,再次打開Internet選項。
Then click on the Settings button under the Browsing history section.
然后單擊“瀏覽歷史記錄”部分下的“設置”按鈕。
At the very bottom of the dialog that opens you will see 3 buttons. However, only two of them are important to us:
在打開的對話框的最底部,您將看到3個按鈕。 但是,其中只有兩個對我們很重要:
- View Objects 查看物件
- View Files 查看文件
Go ahead and click on view objects.
繼續并單擊查看對象。
This will open the Downloaded Program Files folder in your Windows directory. This article was written on a clean installation of Windows 8 so as you can see below my folder is empty. If you have been using IE for a while you will see a whole lot of binary file that are used by IE for certain web applications. The most common are ActiveX controls.
這將打開Windows目錄中的Downloaded Program Files文件夾。 本文是在Windows 8的全新安裝上寫的,因此您可以在下面看到我的文件夾為空。 如果您已經使用IE一段時間,您將看到IE在某些Web應用程序中使用的大量二進制文件。 最常見的是ActiveX控件。
The other button opens up a folder with all the cached media files that IE has collected.
另一個按鈕將打開一個文件夾,其中包含IE收集的所有緩存的媒體文件。
As you can see below they will mostly be images.
如您在下面看到的,它們主要是圖像。
如何更改Internet Explorer的緩存更新間隔 (How to Change Internet Explorer’s Cache Update Interval)
If you find that IE keeps serving up stale content, you most probably want to change the cache update interval. This will change how internet explorer caches your files, and how it checks for newer versions of cached files. To do this open Internet options.
如果您發現IE繼續提供過時的內容,則您很可能希望更改緩存更新間隔。 這將改變Internet Explorer緩存文件的方式,以及檢查緩存文件的較新版本的方式。 為此,請打開Internet選項。
Again click on the Settings button.
再次單擊設置按鈕。
Here you will see four options, while they are pretty self explanatory, if you are suffering from the stale content problem you will want to change it to check every time you visit the webpage.
在這里,您將看到四個選項,盡管它們很容易解釋,但是如果您遇到過時的內容問題,則需要在每次訪問網頁時進行更改以進行檢查。
That’s all there is to it.
這里的所有都是它的。
翻譯自: https://www.howtogeek.com/127565/how-to-modify-caching-behavior-in-internet-explorer-10/
總結
以上是生活随笔為你收集整理的如何在Internet Explorer 10中修改缓存行为的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 前端学习(612):js的三种书写位置
- 下一篇: 雷达的L、S、C、X波段是什么