I am currently facing the problem that I want to serve static content through the static.mydomain.tld subdomain , but my SSL certificate is only valid for my main domain mydomain.tld
Should I include javascript, css and images over a secure connection when using https, or can I use http://static.mydomain.tld .
I would modify my javascript so that AJAX requests use https in the main domain.
Or should you not use a subdomain and include files from the main domain?
(I was thinking about using a subdomain because I read that static content should be served from a domain that does not set cookies)
Thanks!
source share