Some of the articles I have read suggest that items cached by service worker (web Cache API) is stored in system forever. I have come across a scenario when some of the cached resources are evicted automatically for users who revisit my website after a long time(~ > 2 months) I know for a fact that assets cached via HTTP caching are removed by browser after certain time. Does same apply for service worker too?
If that is the case, then how does browser decide what asset it has to remove and is there a way I can tell browser that if it is removing something from cache, then remove everything that are cached with same cache name?