g00glen00b / dimitri.codes

Static generator for dimitri.codes using Gatsby
https://dimitri.codes
Other
20 stars 7 forks source link

Improve caching setup #54

Closed g00glen00b closed 4 years ago

g00glen00b commented 4 years ago

It seems Netlify always defaults to a Cache-Control: max-age=0, public, must-revalidate even though Gatsby recommends caching static assets and JS/CSS indefinitely, as they're behing hashed.

This could be changed by including a _headers file. This could be simplified by using the gatsby-plugin-netlify-headers plugin or the gatsby-plugin-netlify plugin.