為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Does FF ever check for updates of static pages?

  • 1 回覆
  • 1 有這個問題
  • 6 次檢視
  • 最近回覆由 xebeche

more options

When I open a static HTML page of our server (an index.htm file with HTML5 content) Firefox shows old content even though the file had been updated several days ago. Developer Tools -> Network shows "cached" in column "Transferred". The server log shows no hit at all. So, the server is not contacted, page content is coming from the cache. The response headers are

Date: Mon, 28 Aug 2017 09:48:54 GMT Server: Apache/2.4 Last-Modified: Wed, 17 May 2017 20:07:40 GMT ETag: "727-54fbdd727f565-gzip" Accept-Ranges: bytes Vary: Accept-Encoding Content-Encoding: gzip Content-Length: 940 Content-Type: text/html

I know about ^R, F5 etc., that's not my concern. What I wonder is when will Firefox contact the server again to ask whether the page had been updated? Is there a about:config setting for the frequency? Or will Firefox show the old content until the page happens to drop out of cache?

When I open a static HTML page of our server (an index.htm file with HTML5 content) Firefox shows old content even though the file had been updated several days ago. Developer Tools -> Network shows "cached" in column "Transferred". The server log shows no hit at all. So, the server is not contacted, page content is coming from the cache. The response headers are Date: Mon, 28 Aug 2017 09:48:54 GMT Server: Apache/2.4 Last-Modified: Wed, 17 May 2017 20:07:40 GMT ETag: "727-54fbdd727f565-gzip" Accept-Ranges: bytes Vary: Accept-Encoding Content-Encoding: gzip Content-Length: 940 Content-Type: text/html I know about ^R, F5 etc., that's not my concern. What I wonder is when will Firefox contact the server again to ask whether the page had been updated? Is there a about:config setting for the frequency? Or will Firefox show the old content until the page happens to drop out of cache?

所有回覆 (1)

more options

I should add that "browser.cache.check_doc_frequency" is set to its default value 3 which is explained as "Check for a new version when the page is out of date. (Default)" on its KB page.