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 Started

Improve 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.

 feature icons green time green

Websites that use anonymous page caching have reported median page speed reductions of more than half previous speeds. Users get a better on-page experience when pages load quickly and are more likely to stay on the page and browse to additional pages.

 feature icons green gear green

Cache full HTML documents without making complex application code changes. By caching for anonymous users, you ensure every new visitor to your site has a fast first page load time and good first impression of your website.

 feature icons green seo green

Faster page load times improve search engine rankings, meaning your pages are more likely to show up higher in search results on Google and other search engines. Get a leg up on the competition by improving Time to First Byte and overall load time.

 feature icons green server green

By caching HTML documents for a larger number of visitors, you will serve this content directly from the Section Edge Compute Platform. This will reduce the number of requests made to your web servers and the infrastructure needed to support requests. As a result of the decreased load on your origin servers, you will be able to lower your hosting costs.

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 as a Service 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.

Technical Details

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.