0

I did some performance optimization (and I test it with webpagetest.org) but I still have problem with CDN detection. It looks like on screen: enter image description here

All requests (except first which is http request for html) with red X icon in last column are:

  • for assets (css, js, images or fonts)
  • from same domain (different than main application domain)

What should I do to have assets detected as CDN on this test???

Michał Kutra
  • 1,202
  • 8
  • 21

2 Answers2

1

WebPageTest just uses a list of the most common CDN providers and then parse the assets request header :

CDN_PROVIDER_HEADER cdnHeaderList[] = {
    {"server", "cloudflare", _T("Cloudflare")},

to check (in this case) if there is a server key containing cloudflare.

Ivan Gabriele
  • 6,433
  • 5
  • 39
  • 60
0

Are the assets actually hosted on a CDN?

If it's one of the common CDNs that WebPageTest will automatically detect it.

If it's one of the less common ones you may have to update the code and issue a pull request - there are plenty of examples of what needs changing in the closed PRs.

Andy Davies
  • 5,794
  • 2
  • 26
  • 21