XF 2.2 Browser can't updates the new SSL certificate

hongtrang

Member
I am having the following problem:
After the forum's SSL certificate is renewed but on the user's browser there is no change, it still shows the expiration date of the old SSL certificate.
The browser only updates the new SSL certificate when I clear the browser cache.
This situation only occurs on the forum page. I assume the cause is in the PWA, but I don't know how to fix the problem.
 
I solved the problem by modifying the service_worker.js file as follows
JavaScript:
"use strict";

// ################################## CONSTANTS #################################
......
var supportPreloading = true;

// ############################### EVENT LISTENERS ##############################



    // bypasses for: HTTP basic auth issues, file download issues (iOS), common ad blocker issues
    if (request.url.match(/\/admin\.php|\/install\/|\/download($|&|\?)|[\/?]attachments\/|google-ad|adsense/))
    {
        if (!supportPreloading && event.preloadResponse)
        {
            event.respondWith(event.preloadResponse);
        }

        return;
    }

   ........................
 
Top Bottom