Instant results, no need to wait for Akamai configuration to deploy.
Ability to adjust TTLs on the fly during special events or emergency situations.
There are some situations which make controlling caching difficult. Here is how we’ve dealt with them.
Server Side Includes
Apache cannot calculate the last modified timestamp for files with server side includes (roughly 99% of all html pages on cbc.ca).
We’ve applied a blanket 2 min TTL on all files with the “text/html” content type
Server side customization of content will not work as it will be cached for all users.
We’ve mitigated this by having all customization occur on the client side. If a cookie does not exist, then the browser makes a POST request (which isn’t cached) to the origin to set a cookie which contains the users location.