Is there a standard way to calculate TTL for different types of cache? this's more of a generic question so lets assume we're designing a system from scratch and we have the following requirements/specs:
static resources served by CDNs are rarely updated e.g.(privacy policy, about, images and maps)
application cache is used to serve a- sessions b- recently used reads regardless of the type
client side cache (previously requested files), as well as lets say images or posts a client can see (something similar to Instagram/twitter in this case)
Calculate TTL for the following types based on the little to no information provided above:
- Client cache
- CDN
- Webserver cache (used for media)
- Application caache (sessions and recent reads of some data)