Implement offline caching using Service Worker in portfolio app

in utopian-io •  7 years ago  (edited)

Components

This proposal involves the Service Worker part of the application (that needs to be implemented).

Proposal

I propose adding a Service Worker to the portfolio application. Among other things, it will allow us to add caching feature in the application. In that way, it will drastically reduce page load times for users that visit the website for the second time or later. Also, now users will actually be able to use the application when offline.

Mockups / Examples

To implement this, we will need to add an sw.js file at the root of the website folder. Implementation of sw.js will mostly follow the tutorial given in this Google Lab - Caching Files with Service Worker.

The resource serving flow of the application would then look as follows -

Benefits

Once implemented, this will make the portfolio app load quicker. Also, the app would work even in conditions with weak or no network connection. This will also be a step in the direction of implementing the Progressive Web App standard that is a necessity in modern web development.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Your contribution has been rejected because you can not suggest features to your own projects.
You can instead create a Task Request.


Need help? Write a ticket on https://support.utopian.io.
Chat with us on Discord.

[utopian-moderator]

Are you the developer of this app?

Yes, it's my open source project. Is it against the rules?
Pardon me if it is.