Page 1 of 1
CDN not working
Posted: 23 Nov 2015, 10:25
by andreamarucci
Hello Karl, just upgraded my gallery and almost everything went fine. I've input my CDN url in the specific field but all the images are taken from my server and not from the CDN. Any idea?
Re: CDN not working
Posted: 23 Nov 2015, 13:28
by mjau-mjau
link?
Re: CDN not working
Posted: 23 Nov 2015, 13:51
by andreamarucci
Re: CDN not working
Posted: 23 Nov 2015, 13:57
by mjau-mjau
It doesn't seem to be working. Please let me look into this issue tomorrow ...
Re: CDN not working
Posted: 23 Nov 2015, 15:50
by andreamarucci
I've sent you via PM my admin details if you want to look at the admin side...
Re: CDN not working
Posted: 24 Nov 2015, 09:54
by andreamarucci
Hello Karl, found something wrong?
In the page source I see this
</a><a class='item img-link item-link x3-popup' data-options='w:800;h:531' data-image='http://1041320869.rsc.cdn77.org/content/4.20112015/3.2013/3.100313/DSC_3314.jpg' data-title='DSC 3314' data-description='' data-date='12 March 2013' href='/20112015/2013/100313/DSC_3314/' id='DSC-3314' itemprop='associatedMedia' itemscope itemtype='http://schema.org/ImageObject'><figure><div class='image-container' style='padding-bottom:66.375%;'><img data-src='http://1041320869.rsc.cdn77.org/content/4.20112015/3.2013/3.100313/DSC_3314.jpg' alt='DSC 3314' itemprop='thumbnail'></div></figure></a>
this one
data-image='http://1041320869.rsc.cdn77.org/content/4.20112015/3.2013/3.100313/DSC_3314.jpg'
is correct but the href is not pointing to the CDN as you may see
href='/20112015/2013/100313/DSC_3314/'
Re: CDN not working
Posted: 24 Nov 2015, 11:17
by mjau-mjau
andreamarucci wrote:Hello Karl, found something wrong?
Sorry, I have been so busy and did not get the opportunity to look into this issue yet ... It is clearly a BUG in X3, and I will look into it tomorrow. Nothing wrong from your side ...
Re: CDN not working
Posted: 24 Nov 2015, 11:59
by andreamarucci
No problems Karl...
Re: CDN not working
Posted: 25 Nov 2015, 22:41
by mjau-mjau
Just for reference, this bug is currently in our task-list for an update that will likely be available before the weekend.
Re: CDN not working
Posted: 26 Nov 2015, 02:28
by mjau-mjau
Just checked in to your panel, saved a page without changing it, and CDN seems to work now:
I am not quite sure why it required a page refresh, because it should have forced a page-refresh when saving settings ... but at least it works.
Re: CDN not working
Posted: 26 Nov 2015, 05:15
by andreamarucci
I don't know. If you browse the gallery and go in one of the galleries like here for example
http://gallery.kog.it/20112015/2012/140112/
you click on a photo, the photo appear and if you try to open the image in another windows, the URL is not the one of the CDN but the local one...
Re: CDN not working
Posted: 26 Nov 2015, 05:38
by mjau-mjau
Definitely works here, for all image resources, also in popup window, and image-landing page:
Loads this:
http://1041320869.rsc.cdn77.org/content ... G_9799.jpg
Wonder if you have some strange cache issue somehow. Everything is correct from here. Sample code from a link, where
data-image (for popup) is set to CDN url, anchor tag
HREF points to the image-page, and <img>
data-src and
src points to the CDN:
<a class="item img-link item-link x3-popup" data-options="w:800;h:533" data-image="http://1041320869.rsc.cdn77.org/content/4.20112015/2.2012/2.140112/IMG_9803.jpg" data-title="IMG 9803" data-description="" data-date="14 April 2015" href="/20112015/2012/140112/IMG_9803/" id="IMG-9803" itemprop="associatedMedia" itemscope="" itemtype="http://schema.org/ImageObject" style="margin-bottom: 10px; margin-right: 10px; width: 365px; height: 247px;"><figure class="unveiled"><div class="image-container"><img data-src="http://1041320869.rsc.cdn77.org/render/w640-q90/4.20112015/2.2012/2.140112/IMG_9803.jpg" alt="IMG 9803" itemprop="thumbnail" src="http://1041320869.rsc.cdn77.org/render/w640-q90/4.20112015/2.2012/2.140112/IMG_9803.jpg" style="height: 235px;"></div></figure></a>
PS! The actual LINK in the <a> anchor tag should not go to CDN, because it points to the landing page:
href="/20112015/2012/140112/IMG_9803/"
Re: CDN not working
Posted: 26 Nov 2015, 06:04
by andreamarucci
Perfect, maybe a cache problem here. Happy to hear that everything is working from there
I really love X3 and I think it's one of the best galleries around
