I am working on my portfolio website. It is a PWA and there is a service worker. I am caching the index page and all the required assets of the index page using the service worker. But when I actually test it the cache size is building up with each load. After some experiments I found out that the problem is with the Google analytics script though I am not sure. But I cannot find a way to fix it. I had copied directly the code from Google analytics. Then as it didn't work, I tried to set the crossorigin="anonymous"
. Then also it isn't working.
Thanks in advance!