Reverse Proxy w/ Cloudflare

How to Determine if an Item is Cached

Overview
Introduction to Reverse Proxies + Webflow
001
What Problems are we Solving?
What Problems are we Solving here?
101
The SSL Problem
102
Maximizing Site Performance
103
Staying Within Webflow's Hosting Plan Traffic Limits
104
Setup & Configurations
Proxy Configuration Approaches
201
Reverse-Proxy DNS Config
202
High Performance Configs
Proxying for Performance
300
Caching Strategy
301
Level 1 - Basic Caching
302
Level 2 - Caching + Optimization
303
Level 3 - Extended Caching + Optimization
304
Level 4 - Advanced Caching + Optimization
306
Administration
How to Determine if an Item is Cached
801
How to Remove a Cached Item
803
Emergency Revert
804
Resources
More Resources
901
No items found.
Published
October 28, 2023
Updated
October 28, 2023
in lightbox
When you're looking at a website in your browser, how do you determine what is cached, and what isn't?

More specifically...

  • How do you tell if Cloudflare is delivering a specific URL, image, or file from the cache?
  • How can you easily see this information more easily for the results of an entire webpage?
  • How can you easily visualize the cache status for the images on a webpage?

In general, the best way to determine these details from the browser is through the Network tab of Chrome dev tools. In there, you can check the response header

Use Chrome dev tools and look at the header; 

  • HIT: The resource was successfully served from Cloudflare's cache.
  • MISS: The resource was not found in Cloudflare's cache and was fetched from the origin server.
  • EXPIRED: The resource was found in Cloudflare's cache but is stale and needs to be refreshed.
  • BYPASS: Cloudflare was instructed to bypass the cache and retrieve the resource from the origin server.
  • DYNAMIC: The resource was not cached because it's considered dynamic (e.g., due to cookies or query strings).
  • STALE: The resource is served stale from the cache because Cloudflare couldn't reach the origin server.
  • UPDATING: The resource is being updated in the background while serving a stale version.

Image caching 

If you use Google Chrome there is an excellent plugin called Dr. Flare. When it's switched on, it will color code images depending on their cached status.

  • Green-tinted images are served from CF's cache
  • Red-tinted images are not cached and are served from the origin server
  • Grayed images are external, served from elsewhere

https://chrome.google.com/webstore/detail/drflare/pibckhncbjabhlomohgcdedacopeooml/related?hl=en

FAQs

Answers to frequently asked questions.

Videos
No items found.
Table of Contents
Comments
Did we just make your life better?
Passion drives our long hours and late nights supporting the Webflow community. Click the button to show your love.