I am looking for a good explanation of why one would use sliding expiration when caching data in a Web application. It seems as if you would always want to cache content using absolute expiration so the data is forced to be refreshed. With sliding expiration you risk having your data be cached indefinitely. Is it only useful for caching static data? What is a common scenerio for when sliding expiration is helpful? Thanks.
Some things might be okay to be cached indefinitely, but only if you have enough memory to keep them.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With