Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ImageEngine CDN detection #210

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/common/rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ YSLOW.registerRule({
'cdn.api.twitter.com', //Twitter API calls, served via Akamai
'apis.google.com', //Google's API Hosting
'.akamaihd.net', //Akamai - Facebook uses this for SSL assets
'.rackcdn.com' //Generic RackSpace CloudFiles CDN
'.rackcdn.com', //Generic RackSpace CloudFiles CDN
'.imgeng.in' // ImageEngine by ScientiaMobile
],
// array of regexps that will be treated as exception.
exceptions: [
Expand All @@ -129,7 +130,8 @@ YSLOW.registerRule({
],
// array of regexps that match CDN Server HTTP headers
servers: [
'cloudflare-nginx' // not using ^ and $ due to invisible
'cloudflare-nginx', // not using ^ and $ due to invisible
'ImageEngine$' // ImageEngine by ScientiaMobile
],
// which component types should be on CDN
types: ['js', 'css', 'image', 'cssimage', 'flash', 'favicon']
Expand Down