Fastly’s edge cloud platform enhances web and mobile delivery by accelerating dynamic assets and caching unpredictably changing content.
Many websites are made of millions of interrelated objects, making it challenging to update all related content. Fastly surrogate keys allow you to fine-tune purging by tagging related objects across your site with a key name and description and purge by that key. You can purge your entire site of these objects at once without a performance hit. Purge full classes or libraries of objects, such as all images and content related to sale items, discontinued products, or outdated news content across your site.
Fastly’s Soft Purge feature allows you to mark content as outdated or slightly stale, instead of permanently removing it from cache. This ensures good user experiences even if your origin server goes down or takes longer than usual to update.
Instead of showing an error message, you can configure your content to serve stale-if-error or stale-while-revalidate. With stale-while-revalidate, the first person requesting a page after purging receives slightly outdated content, while your page is being refreshed in the background.