搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

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.