On Jun 19, 3:47 pm, "[email protected]"
<[email protected]> wrote:
> Hi
> For improve performance  I think to  use an external server like
> static server (with lighttpd) to provide static content like
> image,css, js and so the file uploaded by user.
> I would ask if someone has experience about this and how he has
> configured CAKE to do this?

Do you want that to apply to absolutely any and all assets?

If so you could do something like this (could also do it in controller
afterFilter, or a helper after render):
http://trac.assembla.com/mi/browser/branches/base/controllers/components/swiss_army.php#L442

Otherwise, you'd put some logic in your app helper url method (or any
other function common to the bits you want to modify) to inject the
host you want

hth

AD
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to