![]() |
I've had this problem for several weeks now... seems to be related to upgrading to FF5. :td::td:
The feature is not working properly on two office computers running FF5. Works fine on IE7 on those same computers, as well as Chrome on my home computer. |
Originally Posted by Canarsie
(Post 16674940)
My Firefox 5.0 issue is indeed on an Apple Macintosh computer.
I have not tried Firefox on Windows 7 or Windows XP yet, although those browsers were not upgraded... I'm sure IB can see how many of us are Mac and how many PC, but I'd wager that there's a pretty decent Mac presence here. Especially with MacBooks for travelling, and the generally affluent nature of this board, I think Macs are probably over-represented compared to general sales numbers. |
Originally Posted by IB-Dick
(Post 16674654)
vB does, but it's in the forum of a parameter in the query string. The format is showthread.php?goto=newpost&t=1234567 where t is the thread ID.
Example: http://www.flyertalk.com/forum/showthread.php?goto=newpost&t=1231886 redirected to:forum/../1231886...html#post16675245, the last post (at the time) and the only one I had not yet read.I then clicked the -new-post.html link for the same thread and was taken to: forum/../1231886...html#post16660107, a post that it is three days old, precedes a post I made on the thread, and that is seven posts prior to the one I just read using the old style link!That suggests the problem is in the communication between vbSEO (or the custom FT code?) and core VB? Would an option be to revert the new-post links to the old style, but add the nofollow tag? (The nofollow tag might actually be superfluous; a guest with no cookies doesn't see any -new-post.html links anyway, so perhaps the bots never see them either.) I'm not a real JavaScript coder (I just play one on FT for the benefit of myself and the rest of the RR forum) so I'd be pokey at putting it together...but it seems a user-side fix would be a GreaseMonkey script to rewrite the -new-post.html URLs to the old style. If nothing else, that would help more quickly collect enough data to confirm or disprove the conclusion suggested by my small sample size results.
Originally Posted by IB-Dick
(Post 16674654)
I'm primairly testing on FF5 on a Mac, as that is the most common browser reporting the problem, but I can't replicate it with my own viewed threads.
|
Here is a user-side fix in bookmarklet form:
Code:
javascript:(function(){var a='http://www.flyertalk.com/forum/showthread.php?goto=newpost&t=', b=$('a[href$="new-post.html"]'),i,u,t;b.each(function(h){u=b[h].href;i=u.lastIndexOf('/')+1;t=u.slice(i,i+7).replace(/[^0-9]/g,'');u=a+t;b[h].href=u ;});}())As with all bookmarklets, it has to be applied anytime the page it affects changes. Therefore, if it is not already your practice, you should Ctrl-click or shift-click all -new-post.html links. The bookmarklet uses jQuery (already used by FT), so it will take a bit more work to convert the bookmarklet to a GreaseMonkey script than otherwise, but I'll post that when it is available. ETA: I don't access FT threads via MyFlyerTalk, so it hasn't been tested there. It should work, but let me know if it doesn't. |
OK I got really annoyed at it today & tried something that worked for me. It's really kludgy & we still need to find a better fix, but see if this works until IB can find a better fix:
Clear your browsing cache. In FF, you do this by going to tools>options>advanced>network and punch the "Clear Now" button in the offline storage section (next to the line that reads "Your cache is currently using xxx.x MB of disk space"). I've tried it this afternoon & the results seem repeatable. After you clear cache, the "go to next unread" works correctly. I cleared cache, read the new posts in thread (correctly handled), exited thread, additional new posts were made, went to read new posts without clearing cache & it took me to something I already read..... exited thread, cleared cache, additional new posts were made in thread & accessing the "read new posts" function worked correctly after clearing cache. If it works for others, then we need to figure out why the cache isn't being cleared like it used to after the database pointer is updated. |
In FF5.0 on Win7:
If I clear my cache (Tools menu > Options > Advanced Tab > Network Tab > Clear Now button), then the links function correctly for me. Of course, I later need to clear my cache again as new links/pages get cached. Edited to add: Looks like Global_Hi_Flyer and I were going through this around the same time. Is there something that can be done to tell the browser not to cache these? |
Here is the GreaseMonkey script to change the -new-post.html links to the old style:
Code:
// ==UserScript== |
The comments about clearing the cache resolving the issue got me thinking, so I did a little data-gathering.
The process by which a browser navigates to the last unread post has been explained above, but I wanted a closer look at the traffic to see if something funny was occurring. The fact that the newest browsers are affected would seem to indicate that as the browsers are becoming more and more standards-compliant, incorrect or outdated behaviors are being exposed. First, a little background. When a browser requests a web page, the server can respond all sorts of different ways. If the page doesn't exist, many people are familiar with the "404 Page Not Found" error code. If it exists and everything is fine, the server responds with "200 OK" and the contents of the page. There are actually many such codes which are grouped into series: 200-series indicate success, 500-series indicate server error, etc. The 300-series response codes are interesting, and as a group, categorized as the redirect responses. This generally means the client (browser) has made a request, the server understands it, but the server wants the client to look elsewhere for the content. FT employs a 300-series request when redirecting the browser from the new-post "magic" link to the actual post. Let's take a look at the raw request and response for a problematic thread: Starting from my My FlyerTalk page, I click on the First Unread Post icon next to a thread title I'm interested in. In this case, it's the AS Newbie thread, which I generally track whenever I'm online. Here's the request headers my browser sends. Note that this is the new-post "magic" link: Code:
Request GET /forum/alaska-airlines-mileage-plan/1142410-alaska-airlines-newbie-lounge-ask-your-questions-here-flame-free-new-post.html HTTP/1.1Code:
Response HTTP/1.1 301 Moved PermanentlyCode:
Request GET /forum/showthread.php?p=16671657 HTTP/1.1Code:
Response HTTP/1.1 301 Moved PermanentlyCode:
Request GET /forum/alaska-airlines-mileage-plan/1142410-alaska-airlines-newbie-lounge-ask-your-questions-here-flame-free-17.html HTTP/1.1Code:
Response HTTP/1.1 200 OKAll this means that when a user clicks on a new-post "magic" link, FT is responding with a URL to specific post, and specifically indicating to the browser that it CAN and SHOULD save that answer for later. So later, when that thread comes up again in your My FlyerTalk, modern browsers will default to their cached values instead of taking the time to round-trip to the server. This is good design as it allows the browser to save one entire unnecessary round-trip, which can speed up the browsing experience significantly. So what's the fix? Well, FT has already figured it out. Examining closely the responses above, you can see the other 2 responses from FT (including one other 301 response) both include specific directives to the client to not cache the results. These are the 3 relevant lines: Code:
Expires 0Edit: Here's the post that explains this behavior is new in IE9 that basically confirms my analysis above. The problem is definitely with FT's implementation of 301 response code, and is only just now being exposed by new efficient browsers. |
Originally Posted by baliktad
(Post 16676836)
I would expect that if FT added these no-caching directives to the new-post magic redirector, the issue would be resolved. Alternatively, the new-post magic redirector could be adjusted to use a more appropriate redirect response that does not suggest the client cache the results. 307 Temporary Redirect is probably the suitable option here.
Edit: Here's the post that explains this behavior is new in IE9 that basically confirms my analysis above. The problem is definitely with FT's implementation of 301 response code, and is only just now being exposed by new efficient browsers. |
Did the clear cache thing on FF 5.0 and it is still not working (today I got the worst new posts list ever, with "new" posts all the way back to June 22, all of which I have already looked at, of course).
Could someone at IB please fix this damn thing already? Especially now that baliktad has done the work for you? |
Originally Posted by baliktad
(Post 16676836)
The comments about clearing the cache resolving the issue got me thinking, so I did a little data-gathering.
I'm working to find an elegant solution to this. |
I am glad I found this thread as this problem was driving me crazy.
For my part, I have FF 5.0 on my desktop and FF4.0 on my laptop and both are having the same problem. So, this morning, I cleared by cache and cookies and it worked, but when I got home, it took me back to a 7:00 AM post even though there were other posts made after it that I read. So, I cleared the cache and cookies again. It then moved me to the last afternoon posts I read. So far, so good. Logged off to have dinner and returned, launch the browser, clicked a thread and ... BAH.. back to the 7:00 AM post reference above. Keeping my fingers crossed that you can resolve this soon. Thanks! |
Originally Posted by baliktad
(Post 16676836)
<detailed and brilliant technical analysis>
Originally Posted by IB-Dick
(Post 16677437)
I really think that this is the problem. It even explains why I'm not having the issue.... I have caching disabled, since when you work in WebDev, caching is usually a headache.
I'm working to find an elegant solution to this. |
Originally Posted by baliktad
(Post 16676836)
The comments about clearing the cache resolving the issue got me thinking, so I did a little data-gathering.
I did some looking and discovered things like:
Originally Posted by baliktad
(Post 16676836)
The fact that the newest browsers are affected would seem to indicate that as the browsers are becoming more and more standards-compliant, incorrect or outdated behaviors are being exposed.
Originally Posted by ftnoob
(Post 16661619)
Viewing the details of the traffic we can see things like:
Code:
11:19:41.640 Status: pending GET http://www.flyertalk.com/forum/southwest-rapid-rewards/1230034-chase-rapid-reward-points-did-anyone-not-get-theirs-transferred-new-post.html
Originally Posted by baliktad
(Post 16676836)
So what's the fix? Well, FT has already figured it out. Examining closely the responses above, you can see the other 2 responses from FT (including one other 301 response) both include specific directives to the client to not cache the results.
Originally Posted by baliktad
(Post 16676836)
I would expect that if FT added these no-caching directives to the new-post magic redirector, the issue would be resolved.
Originally Posted by baliktad
(Post 16676836)
Alternatively, the new-post magic redirector could be adjusted to use a more appropriate redirect response that does not suggest the client cache the results. 307 Temporary Redirect is probably the suitable option here.
Originally Posted by baliktad
(Post 16676836)
Edit: Here's the post that explains this behavior is new in IE9 that basically confirms my analysis above.
Originally Posted by IB-Dick
(Post 16677437)
I have caching disabled...
ETA: left unexplained by these analyses are the upthread reports of this problem occuring in FF 4.x. I'm inclined to think those are erroneous reports, but I could be mistaken. |
Originally Posted by ftnoob
(Post 16677806)
I might be behind the curve on this one, but I didn't see any clearly erroneous caching instructions sent from the server.
10.3.2 301 Moved Permanently The requested resource has been assigned a new permanent URI and any future references to this resource SHOULD use one of the returned URIs. Clients with link editing capabilities ought to automatically re-link references to the Request-URI to one or more of the new references returned by the server, where possible. This response is cacheable unless indicated otherwise.
Originally Posted by ftnoob
(Post 16677806)
Can you double check this and confirm this specific change is needed?
10.3.8 307 Temporary Redirect The requested resource resides temporarily under a different URI. Since the redirection MAY be altered on occasion, the client SHOULD continue to use the Request-URI for future requests. This response is only cacheable if indicated by a Cache-Control or Expires header field.
Originally Posted by ftnoob
(Post 16677806)
I have seen both 302 and 307 mentioned, but this is exactly the direction I was going. The -new-post.html (which as previously noted should not normally be seen by a bot) should receive a "temporary redirect" response, then the old-style .php URI should receive the 301 "permanent redirect" response. To my untrained eye, that should take care of the problem. Perhaps even take care of it in an elegant fashion. ;)
For a dynamic site like FT where pages are all generated on the fly, these types of redirects should really be handled with HTTP 302/307 response codes, along with an explicit no-cache directive to ensure that the intent is clear to the browser: these redirects are ephemeral and may change at any time. Do not cache the resulting links. Always ask the server, and you will always get the right behavior. |
| All times are GMT -6. The time now is 11:11 am. |
This site is owned, operated, and maintained by MH Sub I, LLC dba Internet Brands. Copyright © 2026 MH Sub I, LLC dba Internet Brands. All rights reserved. Designated trademarks are the property of their respective owners.