Thanks Majna. I have gone through the link. But I didnt find this "echo 
$this->Html->css('alpha_landing/styles', array('fullBase' => 
$cdnBaseUrl));" in my cakephp code..In addition to that I am using amazon 
cloudfront CDN.
I  
  Want to use Cloudfront to serve images and CSS for my cakephp website. I 
would like to just host the files on my host and use cloud front to speed 
up delivery of said files, I dont know how to proceed? 

Till now I have created a distribution on CloudFront with my Origin Domain 
and CName and deployed it.

Origin Domain: example.com CName cdn.example.com

I added the CNAME for my domain:

cdn.mydomain.com with destination xx.cloudfront.net
Do I need to update the links in my HTML to that cname so if the stylesheet 
was http://example.com/app/webroot/css/style.css do I change that to 
http://cdn.example.com/app/webroot/css/style.css

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Reply via email to