CDN
Using Jamroom
andersda:Slightly incorrect; but my fault for improperly wording the question.
You don't re-direct to the cdn. You DIRECT to the cdn. However, you don't upload your assests to the cdn. The cdn does a reverse proxy to your server to grab the asset if it's not in their cache.
Got it - I'm used to using AWS's CloudFront, where you push your images to an S3 bucket, and in turn they get pushed out to the edge servers.
Quote:So, basically I want to be able to have all static assets (images, listen audio, tpl files, etc) come from the cdn. In order to do that, you have to have all the pages that reference those objects request them from a different host. So you need to re-write links to all jpg files to
http://cdn.mysite.com/images/filename.jpg instead of
http://www.mysite.com/images/filename.jpg.
The ideal would be a CP setting to define the base URL of all static file types.
Since 99% of users would never use this, having those options baked into all the templates is overkill - so you would just want to update your templates to reference your CDN URL instead of $jamroom_url.
Hope this helps!