WebPagetest Forums
Does WPT cache service workers between tests? - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: Web Performance (/forumdisplay.php?fid=3)
+--- Forum: Discuss Test Results (/forumdisplay.php?fid=4)
+--- Thread: Does WPT cache service workers between tests? (/showthread.php?tid=16181)



Does WPT cache service workers between tests? - imkevdev - 09-03-2020 12:03 AM

I am running a test for https://sports.tipico.de which downloads the service worker https://sports.tipico.de/sw.js. This service worker was recently updated (doesn't use hash/version number in URL) but WPT test results are returning the old service worker (https://www.webpagetest.org/response_body.php?test=200902_EX_718c0a86479babf10c524f5743c5be8d&run=1&bodyid=9988.235), even on new tests.

Does WPT cache the service worker, and if so how can I update it?


RE: Does WPT cache service workers between tests? - pmeenan - 09-03-2020 12:55 AM

No, WPT completely wipes the profile between tests which nukes EVERYTHING. Is it possible that something is stuck in your CDN cache that needs to be purged?


RE: Does WPT cache service workers between tests? - imkevdev - 09-03-2020 01:44 AM

Thank you Patrick for your quick reply. I will follow up with the guys who manage the CDN then and update accordingly


RE: Does WPT cache service workers between tests? - imkevdev - 09-03-2020 07:37 PM

As expected, it isn't related to WPT. I confirmed this by setting a host file record to the IP address used in the WPT response and using `curl`.