2
votes

Lighthouse suggests the following: "Serve static assets with an efficient cache policy".

But how can i add a cache policy in React app? I've used create-react-app but no serviceworker was authomatically created. How can i tackle this?

1

1 Answers

1
votes

That should be done note in "react app", but in the setting of your webserver. for example if you use nginx take a look on this weblink https://serversforhackers.com/c/nginx-caching or if you are using express http://expressjs.com/en/resources/middleware/serve-static.html