Quantcast

Grails CDN resources coming from https in https pages

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Grails CDN resources coming from https in https pages

dsantamaria
Hi, 
Trying to figure out if there is any way to configure the Grails CDN resources plugin to use a diferent CDN url depends on which page are you, I mean.
For my URL:


The resource will use this property
grails.resources.cdn.url = "http://jlsadf423kl24hlf.cloudfront.net"

But for this one:

I need to change the URL to be this one:
grails.resources.cdn.url = "https://jlsadf423kl24hlf.cloudfront.net"

Any clue of how this can be done (or needs a change in the way that the plugin serves the content?)
Many thanks in advance.
David.


--
David.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Grails CDN resources coming from https in https pages

tomas lin
no way to do so in the plugin now. 



On Mon, Nov 21, 2011 at 9:46 AM, David Santamaria <[hidden email]> wrote:
Hi, 
Trying to figure out if there is any way to configure the Grails CDN resources plugin to use a diferent CDN url depends on which page are you, I mean.
For my URL:


The resource will use this property
grails.resources.cdn.url = "http://jlsadf423kl24hlf.cloudfront.net"

But for this one:

I need to change the URL to be this one:
grails.resources.cdn.url = "https://jlsadf423kl24hlf.cloudfront.net"

Any clue of how this can be done (or needs a change in the way that the plugin serves the content?)
Many thanks in advance.
David.


--
David.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Grails CDN resources coming from https in https pages

lucastex
I haven't used the CDN resources yet, but if you try to define the url as "://xxxx.cloudfront.net"

afaik, the browser will use the same protocol of the current page being viewed (http or https).

[]s,




On Mon, Nov 21, 2011 at 2:02 PM, Tomas Lin <[hidden email]> wrote:
no way to do so in the plugin now. 



On Mon, Nov 21, 2011 at 9:46 AM, David Santamaria <[hidden email]> wrote:
Hi, 
Trying to figure out if there is any way to configure the Grails CDN resources plugin to use a diferent CDN url depends on which page are you, I mean.
For my URL:


The resource will use this property
grails.resources.cdn.url = "http://jlsadf423kl24hlf.cloudfront.net"

But for this one:

I need to change the URL to be this one:
grails.resources.cdn.url = "https://jlsadf423kl24hlf.cloudfront.net"

Any clue of how this can be done (or needs a change in the way that the plugin serves the content?)
Many thanks in advance.
David.


--
David.


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Grails CDN resources coming from https in https pages

jwarner@coterie.com
:// isn't quite right, but just // is.  However, the grails resources plugin doesn't handle // the same as http://.

See this bug: http://jira.grails.org/browse/GPRESOURCES-27

I have attached a code fix to the bug that seems to work.

Thanks,
Jim
Loading...