how to know if digitalocean space CDN is caching file or not?

i am using digitalocean space built in CDN. but image loading is same as without CDN. how to know if CDN is Caching file. i.e how to check if file is comming from CDN server

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

In your browser, right click on the asset, and “Inspect Element” (or press F12). You should see a window or inspector pane show, look for the “Network” tab.

If you see a ‘disable cache’ checkbox, check that and then reload the image.

This will list out the images loaded, and if cached in the Status/Size columns.

If you click on the image you’re loading from the Spaces CDB, it will list out the headers sent, including where it was served from.