Click to See Complete Forum and Search --> : Subdomain Image Cache Issue


Shmohel
05-30-2006, 04:30 PM
I have found some information on this around the web, but not much to sufficiently explain the issue. I was hoping someone here may have an idea.

I am working on a site that is currently accessed as a subdomain:

http://subdomain.website.com

For some reason, the first time the page loads, the images come through properly, successive visits the images do not appear and show as broken images.

But, if I access the page not as a subdaomain but rather as:

http://www.website.com/subdomain

The images work fine.

Does anyone know how to resolve this subdomain image caching issue?

LeeU
05-30-2006, 04:42 PM
If you add the following tag to the head section, it should clear up the problem:
<base href="http://www.subdomain.com/">
It will cause all of your links on that page to start with that URL, so you can use relative links on the rest of the page.

Shmohel
05-30-2006, 04:56 PM
Thanks, but that does not seem to solve the issue. I would send you a link, but I have the site protected right now since it is in development. Basically what happens is the it appears the first time the page loads, and then does not successively as the image seems that it is never cached. If I right click and go to View Image (I am using FF) it will bring me to the image location where it displays properly with the subdomain URL.