covid19india / covid19india-react

Tracking the impact of COVID-19 in India
https://www.covid19india.org
MIT License
6.86k stars 3.41k forks source link

Add Expires headers #2505

Closed hrishikeshp7 closed 3 years ago

hrishikeshp7 commented 3 years ago

Web pages are becoming increasingly complex with more scripts, style sheets, images, and Flash on them. A first-time visit to a page may require several HTTP requests to load all the components. By using Expires headers these components become cacheable, which avoids unnecessary HTTP requests on subsequent page views. Expires headers are most often associated with images, but they can and should be used on all page components including scripts, style sheets, and Flash.

TBH this problem was shown on my website defence and checking system.

shuklaayush commented 3 years ago

I think the resources are already cached since we're using service workers