Create-react-app HTTP caching

I recently used create-react-app

to build and deploy a website. I ran a site speed test at tools.pingdom.com and it looks mostly good. However, I am getting F to use browser caching. Specifically, he talks about the following resources:

http://www.onlineomnichord.com/static/css/main.3d9308b8.css http://www.onlineomnichord.com/static/js/main.7a110dad.js

have a short freshness life.

I am using heroku to host my website, so I read some of my suggestions. At the end of this article on HTTP caching, it says that caching should be implemented within the web framework.

Is there a way to specify cache headers somewhere in my react project? I also read the tutorial for building-react-app and they say you can use the file .htaccess

for the Apache HTTP server. Is there something similar that I should be using?

+3


source to share





All Articles