Do you have the full content in CDN or only the static resources like js, images, css in CDN?
Here is what Site24x7 can help you with,
You can use Force IP addresses option in website monitoring to bypass CDN.
>>We would like to request a new feature on Website Monitoring. ability to bypass CDN server when do monitoring to the website.
Enter the IP addresses pointing to your origin servers from where the website originates from to bypass your CDN server. So when configured, Site24x7 will wget only from these IPs. This will help if your website is actually up or not.
To configure this.. Navigate to web tab > choose your website > Edit (far right - hamburger icon - edit), scrolll down to the Force IP addesses field under HTTP configuration heading > enter the IPs.
Using to HTTP Response headers option to check if the website is from CDN or not
>>additional feature : We also need to know the target server you monitor, it is CDN server or Origin server, for example your monitor feature tell us whether it is hit or miss from the CDN server
In the response header of any wesbite, if the website is rendered from CDN, there will be a response header that will say if the website content is taken from cdn or not though it varies from different CDN providers.
example: A website hit from cloudfrount (the aws cdn service)
To check this you can configure the response header to take the response header and a value. If the exact value is not there, it would mean that the website is not serving from the CDN.
To configure this.. Navigate to web tab > choose your website > Edit (far right - hamburger icon - edit), scrolll down to the HTTP Response Headers field under Content Checks heading > Enter the response headers.
Let us know if these were helpful.
PS: A small point to note, the 2 questions you asked cannot be done on the same monitor as they are contradicting configs in nature for your use case.
Product Manager, Site24x7