CDN Caching
Updated onCloudflare
Cloud makes it easy to cache assests. Go to Caching>Configuration and find "Browser Cache TTL." I have it set to six months, which means assets are stored in the user's browser for six months.
Digital Ocean
https://docs.digitalocean.com/products/app-platform/how-to/cache-content/
By default, App Platform deploys static sites with Cache-Control headers set to cache for 24 hours on CDN edge servers and 10 seconds in web browsers. If you redeploy the app, any cached content is invalidated across the web and CDN servers and web browsers will cache the latest iteration of the website upon any new traffic to the app.
If you want more control over your cache settings, you'll have to use Digital Ocean Spaces, which cost minimum $5/month.