當點選載入的頁面時,FireFox 會收到 ns_error_net_interrupt

當點選載入的頁面時,FireFox 會收到 ns_error_net_interrupt

FireFox 正在連接到我的網站,但訪問已訪問過的頁面將隨機無法連接,從而導致

安全連線失敗

Chrome 和 Microsoft Edge 就沒有這個問題。

奇怪的是,重新載入頁面也不起作用。我需要力量使用 Shift 和重新加載重新加載頁面 - 然後我恢復頁面,並且在使用 Shift 和重新加載時始終加載。

我怎樣才能防止這種情況發生?

html 頁面是由 Apache 2.4.57 伺服器提供服務的預壓縮 Brotli 檔案。

<IfModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault                  "access plus 1 day"
    ExpiresByType text/asp          "now"
    ExpiresByType text/html         "now"
    ExpiresByType text/css          "access plus 1 day"
    ExpiresByType video/x-m4v       "access plus 15 days"
    ExpiresByType image/jpg         "access plus 5 days"
    ExpiresByType image/jpeg        "access plus 5 days"
    ExpiresByType image/gif         "access plus 5 days"
    ExpiresByType image/png         "access plus 5 days"
    ExpiresByType application/pdf   "access plus 1 month"
    ExpiresByType text/x-javascript "access plus 1 month"
    ExpiresByType application/x-shockwave-flash "access plus 1 month"
    ExpiresByType image/x-icon      "access plus 1 month"
</IfModule>
<FilesMatch "\.(html)$">
    FileETag None
    <IfModule mod_headers.c>
        Header unset ETag
        Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
        Header set Pragma "no-cache"
        Header set Expires "access plus 3 hours"
    </IfModule>
</FilesMatch>

我在 FireFox 中使用這些預設連線設定:

使用系統代理設定

未建立連線時的 SSL 資訊且出現錯誤ns_error_net_interrupt

驗證:未指定

重新加載同一頁面(使用 Shift 和重新加載)後的 SSL 資訊 - 它再次工作:

驗證:讓我們加密

答案1

FireFox 似乎不喜歡重新連接到過期的頁面。

    ExpiresByType text/asp          "now"
    ExpiresByType text/html         "now"

當將其更改為

    ExpiresByType text/asp          "access plus 3 seconds"
    ExpiresByType text/html         "access plus 3 hours"

事情開始起作用了。

相關內容