@pawan-gupta wrote:
Thank you very much.
QQ: so what is the best way to handle two types of sites where
1. first site need longer TTL cache because modification into site pages are very low (weekly)
2. second site need pages to be modified frequently & upto date with latest data (as ecom site)
now, as we have same fastly CDN to use among these two different category of site, what is the best way to manage cache (we are configuring it a dispatcher per domain basis but stuck from CDN side)
First you need to tag your pages so code can decide if the page fits into the first or second category. Next you should either build a filter or augment your page-rendering models to read that tag (it can be a real tag or just a simple property) and set the respective caching header. Then make sure that the dispatcher has header caching enabled as well.
(I don't think that this is doable on the dispatcher because this information is not available or needs to be hardcoded.)