tafalk / tafalk-web

A no-look-back site for streams of consciousness to be grown by Woolfies
https://tafalk.com
MIT License
1 stars 0 forks source link

Find some way to add Cache-Control header on S3 files #80

Closed vahdet closed 4 years ago

vahdet commented 4 years ago

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

vahdet commented 4 years ago

Asked for it on StackOverflow:

https://stackoverflow.com/q/63215680/4636715

vahdet commented 4 years ago

Changed CloudFront caching for it.

However, it fdoes not add Cache-Control headers to result and Lighthouse does not get it as cached.