Skip to content

Instantly share code, notes, and snippets.

@hubgit
Created August 20, 2021 19:35
Show Gist options
  • Save hubgit/d3137c6a66a0720fc4527e47da09160e to your computer and use it in GitHub Desktop.
Save hubgit/d3137c6a66a0720fc4527e47da09160e to your computer and use it in GitHub Desktop.
Netlify + react-scripts headers for static files with content hash in filename - put the "_headers" file in "public" dir
/static/*
Cache-Control: max-age=31536000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment