Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Firefox caches the redirect requests

Posted on 2012-03-25
16
Medium Priority
?
658 Views
Last Modified: 2013-11-19
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?
0
Comment
Question by:svetoslavm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
  • 5
16 Comments
 
LVL 84

Expert Comment

by:Dave Baldwin
ID: 37764426
I'm sorry but that didn't make any sense.  What do cookies have to do with redirects?
0
 
LVL 111

Assisted Solution

by:Ray Paseur
Ray Paseur earned 1000 total points
ID: 37765447
You mean that the cookie contains information like a URL?  Can you please post the code you're using for this?  Most ad companies use a similar set of redirects to put and sense cookies on the client browser, and I've never seen a problem.  I use FF11 all the time and my ad networks are just fine.  In fact, I just used http://toronto.beta.miniads.ca/ and watched it work.  It looks correct to me.
0
 
LVL 111

Expert Comment

by:Ray Paseur
ID: 37765472
Here are the screen shots showing the cookies.Cookies named beta...No cookies named like toronto...
0
Simplify Your Workload with One Tool

How do you combat today’s intelligent hacker while managing multiple domains and platforms? By simplifying your workload with one tool. With Lunarpages hosting through Plesk Onyx, you can:

Automate SSL generation and installation with two clicks
Experience total server control

 

Author Comment

by:svetoslavm
ID: 37767499
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.
0
 
LVL 84

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 1000 total points
ID: 37768344
It is working as you have described in Firefox 11 on my computer.  Redirects to the last subsite visited.
0
 
LVL 111

Expert Comment

by:Ray Paseur
ID: 37768477
Yep, works for me, too.
0
 
LVL 111

Expert Comment

by:Ray Paseur
ID: 37768505
Well, this is interesting.  Apparently the script cannot tell which cities are valid.Any subdomain is OK?
0
 

Author Comment

by:svetoslavm
ID: 37768730
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
0
 
LVL 84

Expert Comment

by:Dave Baldwin
ID: 37768774
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?
0
 
LVL 111

Expert Comment

by:Ray Paseur
ID: 37768805
... all subdomains are ok.
Even the one I tried?!
0
 

Author Comment

by:svetoslavm
ID: 37768953
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.
0
 
LVL 84

Expert Comment

by:Dave Baldwin
ID: 37769056
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.
0
 

Author Comment

by:svetoslavm
ID: 37769695
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?
0
 
LVL 84

Expert Comment

by:Dave Baldwin
ID: 37770243
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.
0
 

Accepted Solution

by:
svetoslavm earned 0 total points
ID: 37789067
Hi Dave, yep make sense. I will update it.
If it all works then I should close this question then
0
 

Author Closing Comment

by:svetoslavm
ID: 37805200
Thanks :)
0

Featured Post

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
Ready to get certified? Check out some courses that help you prepare for third-party exams.
The viewer will learn how to dynamically set the form action using jQuery.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
Suggested Courses

596 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question