SaaS CMS has officially launched! Learn more now.

Scott Reed
Jul 10, 2019
  2282
(5 votes)

View DXC Cache Status Easier In DevTools

When running on the DXC Episerver uses https://www.cloudflare.com/ for it's CDN caching to increase performance.

As most should know when viewing a request in DevTools you can open the request in DevTools and look at the headers and check cf-cache-status to check if a resource has been cached by checking for a HIT response.

We can then look at the cache cache-control header to see for how long e.g. public, max-age 86400 is cached for 24 hours with a HIT to say it's cached.

However it's a bit of a pain to have to click in to all of these, so let's use a not as well known feature of being able to add custom headers to the network requests panel.

Step 1.

In network on DevTools right click the headers area as such

Step 2.

Navigate to Response Header -> Manage Custom Headers

Step 3.

Add in the header cf-cache-status which indicates if it's been cached

Result

Now you'll see a HIT or MISS or Empty (If not going through CloudFlare) giving a lot easier way to see if your resources are being cached.

Easy :-)

Jul 10, 2019

Comments

Stefan Holm Olsen
Stefan Holm Olsen Jul 10, 2019 02:24 PM

Nice and simple tip, Scott. 👍

Jacob Pretorius
Jacob Pretorius Jul 11, 2019 10:27 AM

That's useful thanks for the tip!

Ravindra S. Rathore
Ravindra S. Rathore Jul 15, 2019 12:29 PM

Very helpful tip 👍

Please login to comment.
Latest blogs
Optimizely release SaaS CMS

Discover the future of content management with Optimizely SaaS CMS. Enjoy seamless updates, reduced costs, and enhanced flexibility for developers...

Andy Blyth | Jul 17, 2024 | Syndicated blog

A day in the life of an Optimizely Developer - London Meetup 2024

Hello and welcome to another instalment of A Day In The Life Of An Optimizely Developer. Last night (11th July 2024) I was excited to have attended...

Graham Carr | Jul 16, 2024

Creating Custom Actors for Optimizely Forms

Optimizely Forms is a powerful tool for creating web forms for various purposes such as registrations, job applications, surveys, etc. By default,...

Nahid | Jul 16, 2024

Optimizely SaaS CMS Concepts and Terminologies

Whether you're a new user of Optimizely CMS or a veteran who have been through the evolution of it, the SaaS CMS is bringing some new concepts and...

Patrick Lam | Jul 15, 2024