We are considering the possibility of placing the core of our site (everything that does not need to be dynamically generated) on a CDN, so that our root domain (for example, http://example.com/ ") will point to a CDN, then all dynamic ones will either point to an alternative domain second level (e.g. http://search.example.com/ for search) or overlaying static content on AJAX calls to an alternate domain (e.g. http://ajax.example.com/ ).
This is similar to what would be very desirable for a large number of sites, but I do not see much information even on the CDN home pages about caching the entire site. At least one obvious problem that arises with me is that we are currently detecting that the user is coming from a mobile browser or not, and are serving mobile content if they come from a mobile browser. The problem is that, as far as I know, with most CDNs you can only store on the page version, so if you cache a regular page, mobile browsers will see this instead of the mobile version (and, obviously, vice versa).
We could get around this to some extent by moving the mobile material to a separate domain, such as m.example.com, but we need a CDN to detect mobile browsers and redirect them to this domain (which we would also like to have hosted on a CDN, but , obviously pointing to mobile content rather than regular content).
It seems that this should be widely supported, but I can not find much information about this. Has anyone done something like this? If so, which CDN did you use and how did you solve this problem? Were there other significant obstacles that needed to be overcome?
Edited to add a couple of things that I forgot:
javascript, , , javascript , , , .
, , , URL- , SEO, SEO .