/    Sign up×
Community /Pin to ProfileBookmark

2 questions about Service Workers

Good day, friends!

I couldn’t find the answers on Google, also can’t ask these questions on SO, I don’t think it’s the right format, and no answer on other communities, so, sorry for bothering if it’s not the right format here either.

I recently started to learn PWA topic, specifically Service Workers. I went through MDN tutorial and since I code on Next.js I took “next-pwa” library and successfully implemented offline functionality. “next-pwa” updates the cache (with new assets) automatically after every rebuild.

My questions:

  • 1.

    Next.js allows to use ISR feature that incrementally updates static website (including new pages) without necessity to rebuild the website. **Does the website need to be rebuilt in order for Service Worker to update the cache? Will there be a trade-off “ISR feature vs offline functionality”?**

  • 2.

    The bigger the website the bigger the cache. Imagine the huge blog with million posts or e-commerce site with million items. **Is there any data limit for caching? Are there any restrictions about what kind of websites are “allowed” or “not allowed” or partially “allowed” to cache (due to size)?**

  • to post a comment
    JavaScript

    0Be the first to comment 😎

    ×

    Success!

    Help @AlexTechNoir spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 6.18,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @nearjob,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,
    )...