Don’t go back and forth: using service workers to reduce your website’s footprint

When you visit a web page, your browser will ask the server to send the data it needs to build that page. The browser will then build the page with the received data, but maybe not completely from scratch. If you have visited that page before, the browser might have some parts of the page saved (or cached) on your computer. It will, however, always ask the server for some of the data.

What if we could tell the browser not to contact the server if the content has not changed? Well, we can: enter service workers. And they can even do much more than that.

Continue reading “Don’t go back and forth: using service workers to reduce your website’s footprint”