svetoslavm
asked on
Firefox caches the redirect requests
Hi All,
Issue: Firefox caches the redirect requests
Goal: when a visitor visits toronto.beta.miniads.ca this location is saved in a cookie.
if the visitor accesses beta.miniads.ca and the cookie is there redirect where the cookie is pointing i.e. toronto.beta.miniads.ca.
For some reasons Firefox 11.x is caching the redirect requests?!?
any ideas how to stop it?
Issue: Firefox caches the redirect requests
Goal: when a visitor visits toronto.beta.miniads.ca this location is saved in a cookie.
if the visitor accesses beta.miniads.ca and the cookie is there redirect where the cookie is pointing i.e. toronto.beta.miniads.ca.
For some reasons Firefox 11.x is caching the redirect requests?!?
any ideas how to stop it?
I'm sorry but that didn't make any sense. What do cookies have to do with redirects?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi, Thanks for the quick reply.
The cookie name is last_host. The cookies are used to track the last visited subdomain so when the main domain is visited i.e. beta.miniads.ca it will check the cookie and redirect to that subdomain.
Can you try these links?
http://niagarafalls.beta.miniads.ca/
http://toronto.beta.miniads.ca/
then go visit
http://beta.miniads.ca it is supposed to redirect to the last visited subdomain in this example should be Toronto.
The cookie name is last_host. The cookies are used to track the last visited subdomain so when the main domain is visited i.e. beta.miniads.ca it will check the cookie and redirect to that subdomain.
Can you try these links?
http://niagarafalls.beta.miniads.ca/
http://toronto.beta.miniads.ca/
then go visit
http://beta.miniads.ca it is supposed to redirect to the last visited subdomain in this example should be Toronto.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Yep, works for me, too.
ASKER
Ray, the script will always put the correct hostname.
yes, all subdomains are ok.
check this video I made.
http://dl.dropbox.com/u/3563682/miniads-redirect-caching/miniads-redirect-caching.html
yes, all subdomains are ok.
check this video I made.
http://dl.dropbox.com/u/3563682/miniads-redirect-caching/miniads-redirect-caching.html
You must have different code when you are logged in because the dropdowns don't work in the pages you are showing us. Are you saving the subsite info in a database or session also?
... all subdomains are ok.Even the one I tried?!
ASKER
Ray, good catch.... fixed. Now I saw the *content* of the cookie.
Dave, which dropdowns ? Any screenshots ?
What difference does it make if the user is logged in or not ?
Thanks all for helping me troubleshoot this.
Dave, which dropdowns ? Any screenshots ?
What difference does it make if the user is logged in or not ?
Thanks all for helping me troubleshoot this.
In your video, you were clicking in what I thought was a dropdown box to get the other sub-sites. Or was that just Firefox auto-suggesting previous entries? I just tried again and your auto-suggest for the city box is acting a little odd. Most people would expect that it appear in alphabetical order with the letter that is typed. But when I type an 'r', I get listing that start with everything but 'r'.
Anyway, I can't get Firefox 11 to work the way you showed in your video. It works the way you said it is supposed to.
Anyway, I can't get Firefox 11 to work the way you showed in your video. It works the way you said it is supposed to.
ASKER
Dave, the autosuggest feature searches for a match not just starting with ... "some text"
I using firefox 11 too. So strange.
are you on Windows 7 too?
I using firefox 11 too. So strange.
are you on Windows 7 too?
No, I'm on XP but Ray is probably on Windows 7. Auto-suggest everywhere else like Google returns text that starts with the text typed in.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks :)