Open Utwo opened 4 years ago
This can't be adjusted in AmazonS3/cloudfront from where the website is served ? (some cache control settings ?) Either that or modified serviceworker ? (https://stackoverflow.com/questions/46038668/how-to-modify-auto-generated-service-worker-in-create-react-app)
Yes, this must be adjusted on AWS side.
There is documentation for those settings: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/header-caching.html
https://www.edureka.co/community/989/is-there-a-way-to-add-cache-control-in-aws-s3
Serve static assets (js, css, woff2) with an efficient cache policy. Because files have unique hash in filename, a long cache lifetime can be used.