Brief CDN and Cache Server Background
Here i’ll show you three ways to verify if your website or a resource is being served through cache or not.
- Via Developer Tools
- Via Command-line or Terminal
- Via Third Party Website
In order to view details of a resource on developer tools, you need to go to the “Network” tab. Then click a resource in the left panel. This’ll open up details related to that particular item. Head over to headers tab. In this example, we’re looking at http://talkwithstranger.com/free-chat-rooms where content is served via Cloudflare. You need to keep an eye on the following status message.
Served through CloudFlare
Just open your command line or terminal and paste the following command.
Cache check via terminal
This one is very easy to use as you don’t really need any additional tool except your browser. You can verify if your site or a specific resource is being cached is to use webpagetest.org. If you put the url in and run a test, you can then go to the details page on webpagetest.org after the test has run. The response headers will show the following if the CDN is caching your site or a specific resource:
Webpagetest.org request response result