MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.
WebPagetest Forums - Performance recommendations don't detect CloudFront as CDN

WebPagetest Forums

Full Version: Performance recommendations don't detect CloudFront as CDN
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The performance recommendations don't seem to correctly identify CloudFront embedded resources.

For example:

Quote:Use a CDN for all static assets: 75/100

CDN's Used: : Amazon CloudFront

It detects the whole site as being on CloudFront, but not those images.

Looking specifically at the requests:

They're definitely via CloudFront:

Quote:GET /s/CC_BY_NC_SA-flickr_manachar.jpg HTTP/1.1
Accept: image/png, image/svg+xml, image/*;q=0.8, */*;q=0.5
Accept-Language: en-US
X-Download-Initiator: image="doc 0400; speculative; html tokenizer 5CC0; html lookahead 1:F550"
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0; PTST 2.365)
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response Headers:
HTTP/1.1 200 OK
Content-Type: image/jpeg
Content-Length: 3958
Connection: keep-alive
Date: Fri, 09 Aug 2013 16:13:15 GMT
Cache-Control: public, max-age=2628000
Last-Modified: Sat, 16 Feb 2013 23:56:23 GMT
ETag: "7f314b40af95f23b379eb9256650934d"
Server: AmazonS3
Age: 246680
Via: 1.0 (CloudFront)
X-Cache: Hit from cloudfront
Hmm, thanks. I think you may have hit an edge condition where the browser didn't do a DNS lookup for that domain because the base page was CNAME'd to it and my code was depending on the DNS lookups to identify the CDN.

I just added the cloudfront via header as a fallback for detection. It will probably be a few days before it is live on the production system but it should be fixed soon.
Reference URL's