Try our conversational search powered by Generative AI!

Api request cache in Cloud



Is there any docs or tuto on how Episerver generates etag header to tell Cloudlfare if cached response is still valid?

We are enriching content in content delivery api response with an additional data, which is changing from request to request.
But at cache check Cloudlare always says  "REVALIDATED", which mean (as I understood) that it consider existing cached response as a valid one.
And as a result we always get that first cached value from back end.

Edited, Nov 01, 2022 11:46

This article is a little old although could point you in the direction which responses are cached and potentially how to create your own caching rules for API responses using an Action Filter 

Add HTTP Caching to the Episerver Content Delivery API – Matthew Mols (

In reagrds of setting up Page Rules for API responses it suggested this can only be done via a support request   

Nov 01, 2022 17:09
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.