GoogleChromeLabs / sw-precache

[Deprecated] A node module to generate service worker code that will precache specific resources so they work offline.
https://developers.google.com/web/tools/workbox/guides/migrations/migrate-from-sw
Apache License 2.0
5.23k stars 389 forks source link

RuntimeCaching is not working with Protractor & Selenium automated test. #381

Open Jodge opened 5 years ago

Jodge commented 5 years ago
runtimeCaching: [{
    urlPattern: /^\/$/,
    handler: 'networkFirst'
}]

Runtime caching seems to worker as expected in this case handling network first, but when running automated end to end tests, service worker returns the cached content instead of making a request to the network first, the same issue occurs when using ignoreUrlParametersMatching [Array⟨Regex⟩]

Environment: Mac OS Browser: chrome Version: 72

What could the problem?