I noticed a little problem with Firefox. In my scenario I have added the SEO optimising IIS Url Rewriting module pattern that redirects URL with upper case in to a lower case version.
For all browsers the AJAX request comes in with the X-Requested-With: XmlHttpRequest request header, a 301 status code is returned with the lower cased location, that new location then is requested with the X-Requested-With: XmlHttpRequest header in tact.
Firefox, however, does not honour this header in its redirect. This causes problems with my ASP.NET MVC code that checks for the request being via AJAX using IsAjaxRequest(). This method checks if X-Requested-With: XmlHttpRequest is in the headers (or in other exciting places).
Work around
I was going to try and do something clever like detect the browser and this header and then not redirect under some circumstances because (brace yourself SEO consultants) functionality is more important than SEO. I decided to instead make sure that one troublesome link was lowercase and so avoided the redirect.Just hope this answers your questions if you come across this oddity in Firefox.
what if I still want firefox to redirect? without loosing the header (its a custom header I added), the header can be recognized by IE but not firefox.
ReplyDeleteI don't believe you can. I have come into this issue again with the Referer [sic] header disappearing (in Chrome). The best cause of action is to not have a redirect (unfortunately).
ReplyDeleteI can't think of another way of telling the user's browser to redirect *and* retain a header. Unless you store the info in a cookie if that is appropriate.
ReplyDeleteThanks for posting this useful content, Good to know about new things here, Let me share this, . Hadoop training in pune
Very helpful post.Thanks for your information! Keep sharing.
ReplyDeleteerp software in chennai | erp providers in chennai | online events registration
Interesting post! This is really helpful for me. I like it! Thanks for sharing!
ReplyDeleteWebseiten Gestaltung Lüdenscheid
The best thing is that your blog really informative thanks for your great information!
ReplyDeletecashew nuts suppliers and exporters in dubai
A4 paper suppliers and exporters in dubai
Informative and impressive. Keep Updating
ReplyDeleteProgrammierung in Lüdenscheid
Motifz Designer Lawn. 1, 2 & 3 Piece Unstitched Premium Embroidered Lawn 2019, Premium embroidered Lawn, Premium lawn, Premium lawn 2019, Motifz, Premium lawn in Pakistan, Summer collection. Shipping worldwide. Stitching option available.
ReplyDelete
ReplyDeletehttps://www.bfirstseo.com/تنظيف-خزانات-بالمدينة-المنورة/
Great Article
ReplyDeleteCloud Computing Projects
Networking Projects
Final Year
Projects for CSE
JavaScript Training in Chennai
JavaScript
Training in Chennai
The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals,
Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer.
Angular Training