Closed vahdet closed 4 years ago
Add Cache-Control as suggested in CreateReactApp docs for a production build.
Cache-Control
If there is a way to add that header on S3 via Cloudformation, it would be best as it would override CacheConfig on CloudFront.
Otherwise, Cloudfront invalidations for all files (/*) would be required after deployments
/*
Asked for it on StackOverflow:
https://stackoverflow.com/q/63215680/4636715
Changed CloudFront caching for it.
However, it fdoes not add Cache-Control headers to result and Lighthouse does not get it as cached.
Add
Cache-Control
as suggested in CreateReactApp docs for a production build.If there is a way to add that header on S3 via Cloudformation, it would be best as it would override CacheConfig on CloudFront.
Otherwise, Cloudfront invalidations for all files (
/*
) would be required after deployments