Performance & Scalability
Anonymous Page Caching
Without changes to your application code, Anonymous Page Caching allows you to cache dynamic content for anonymous users by removing set-cookie statements until needed.
Get StartedImprove your Time to First Byte (TTFB) and page speed without application code changes.
Anonymous page caching gives you the ability to cache full HTML documents for a higher percentage of users, reducing load on your origin servers and improving page speeds.
Section gives you control over caching.
Section gives you a range of options for caching dynamic content, including full control over how you cache static objects, images, and dynamic content and the ability to instantly clear cache when changes are made.
In addition, Section is the only Edge Compute Platform to offer Anonymous Page Caching and HTML Streaming, which allow for caching of dynamic content without the need for complex source code changes. This means that with Section, you can cache more content, more quickly, for better overall application performance.
Anonymous Page Caching
Anonymous page caching uses Varnish Cache and VCL to configure your application to cache HTML documents only when a user performs an action such as adding an item to their cart or logging in. It does this by removing all set-cookie statements from responses so that only an appropriate action (such as a POST to add to cart) sets a cookie.
Configure Varnish Cache to respond from cache for all pages until you see a session cookie in the HTTP request. At this point, you can then PASS so that any session that has added to cart will always get the personalized version from the origin servers.
An example of the code you will deploy in your Varnish Cache on Section is in GitHub.
Ready to jump in?
Add Varnish Cache to your edge stack to leverage the benefits of anonymous page caching.