images used in pdf generation on cloud stored in separate subdomain


I have a php website where the logo uploads are in a separate subdomain. The website is hosted on the cloud

I cant see a reason why. However the images are used in pdf generataion

Could this have anything to do with it (addressing for thte pdf?) as i see no reason for the images not to be part of the main site with the rest of the images

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Beverley PortlockCommented:
I would have expected the images to be with the main site. The only time I recall seeing images (and CSS and static HTML pages) being hosted on different domains or subdomains had to do with some sort of attempt at performance enhancement but it never struck me as worth the effort and I have never seen it repeated.

It could be something as simple as a limitation in the code generating the PDFs. Maybe using one subdomain allows the images to be freely moved around with breaking filepaths and such as the images on a subdomain are (I presume) always in the "root" folder
Ray PaseurCommented:
You might want to find the developer who did that originally and ask "why?"  This is an unusual arrangement, so there is probably some kind of backstory that we can't see.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Beverley PortlockCommented:
@Ray - I did a little bit of digging and apparently WordPress uses this to "speed up" site loading. Personally I cannot see it making a discernable difference. The argument is the number of TCP sockets per connection to download things. By using a separate subdomain you double the number of download sockets. Or some such .....

I doubt it would do much for PDFs but I cannot find any other reason. The only advantage I can see it conferring is the reduction in URL length as all images are at the "top" of the path's folder lists.
Powerful Yet Easy-to-Use Network Monitoring

Identify excessive bandwidth utilization or unexpected application traffic with SolarWinds Bandwidth Analyzer Pack.

Ray PaseurCommented:
Interesting... I agree that it would probably not make much difference, given that WP loads so many script files.  All of the WP pages are slow compared to bespoke web sites, but that's just the nature of frameworks.  I'm wondering if there is some other reason -- perhaps licensing the images in a unique way or something like that?
Having static resources served from a CDN allows for more concurrent downloads in the browser and ergo a faster loading website.
Very common, especially in image intensive websites.
If the browser is stuck downloading 100 images from your site then it cannot do anything else til they have finished, by offloading it to a different server it allows your website to continue loading.
Ray PaseurCommented:
@Gary: Yes, good point.  But a CDN in a separate subdomain?  I just haven't seen anybody do that.
I use it all the time for all static stuff like css, js etc, it's not quite a cdn but it is in many ways
Eliminates cookies and allows parallel downloads.

I said different server (though there is an advantage to that as well if it is more local to the visitor), but I should have said different website as is not the same as
Ray PaseurCommented:
I think "" probably resolves to a local DNS, and it would be the same local DNS as, www, etc.  I would refer to these as different sub-domains of the same web site.  Different terminology, but I think we are saying the same thing.
andiejeAuthor Commented:
I asked,. He didnt know. Shall i close the question it a dead end
andiejeAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.