On 22.11.2010, at 18:33, Fabien Potencier wrote:

> On 11/22/10 6:23 PM, Lukas Kahwe Smith wrote:
>> 
>> On 22.11.2010, at 16:12, Lukas Kahwe Smith wrote:
>> 
>>> Right now in order to define a CDN one needs to set the setting as follows:
>>> app.config:
>>>    templating:
>>>        assets_base_urls:
>>>          - http://foo.com
>>> 
>>> Note that 'assets_base_urls' is an array from which the asset helper 
>>> randomly picks one url.
>> 
>> 
>> btw: not really sure if this feature makes that much sense actually as it 
>> kinda makes inefficient use of browser caches. seems more like something one 
>> might want to do on a different layer.
> 
> Read the implementation... The same base URL will always be used for a given 
> asset.


Yeah I stumbled over the "random" code too, but didnt get it form just looking 
at it.
Will file a phpdoc tweak because this doesnt really sound like a good 
explanation in that case:
"     * If you pass an array, the getBaseURL() will return a
     * random one each time it is called."

regards,
Lukas Kahwe Smith
[email protected]



-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" 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/symfony-devs?hl=en

Reply via email to