Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Caching routeInfo.json and react-static-routes.js #516
I noticed in the build routeInfo.json and react-static-routes.js don't have a hash in the file name, so caching them is difficult.
Would hashes on these files be useful to have, or is there some better way to achieve this?
I did find this code in
but no mention of how to use it. Presumably you set the environment variable REACT_STATIC_CACHE_BUST to a value before you build.
I seem to recall reading before query strings aren't great for caching, eg: