gatsbyjs adding offline support to your site



To help making your site more resilient to network connectivity issue, gatsby js provides an awesome plugin that cache pix and js of your site.


It is really simple. Just two steps.

npm install --save gatsby-plugin-offline


Add this to your gatsby-config.js

plugins: [`gatsby-plugin-offline`]


Restart your app and browse to a page. You will be able to see that we can still hit our site.



Comments

Popular posts from this blog

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type