I’ve implemented this in a similar fashion to the example and found that the homepage cache is still intermittently overwriting the dynamic content. I’m attempting to use it to serve up regional phone numbers that are being selected initially based on a url parameter and then after the first page based on a cookie. I’ve done the same thing on another site using an iframe for the regional phone number instead of modifying the cache and it seems to be bullet-proof. At this point I’m giving up on dynamic caching and opting for the other to avoid the intermittent homepage issue and also so I can go back to using the mod rewrite which is what my cdn recommends to work with their system. While I know enough code to be dangerous I really don’t know the ends and outs of how you make caching work so this may seem like an unrealistic request, but it would be great to be able to have dynamic content capabilities when the mod rewrite is selected.