Closed g00glen00b closed 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.
Cache-Control: max-age=0, public, must-revalidate
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.
_headers
gatsby-plugin-netlify-headers
gatsby-plugin-netlify
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 thegatsby-plugin-netlify-headers
plugin or thegatsby-plugin-netlify
plugin.