hackerweb icon indicating copy to clipboard operation
hackerweb copied to clipboard

Outdated content

Open joelcollinsdc opened this issue 9 years ago • 11 comments

Hello,

Starting a few weeks ago, I noticed I am seeing stale content when using this web app. For instance, the top story today is the telegram getting 1M whatsapp users and it says "2 hours ago" even though the story is a few days old. I've tried pulling down, hitting the refresh button, and reloading the page in chrome.

If it helps... Chrome iPhone 5 Using wireless data, not wifi

joelcollinsdc avatar Dec 18 '15 14:12 joelcollinsdc

@joelcollinsdc is it still happening now? May I know the version of the Chrome browser?

cheeaun avatar Dec 19 '15 01:12 cheeaun

Yes it still is. I haven't done much troubleshooting yet, but interestingly, the articles updated from what they were before, but are still a few days old. The second article I see is now the article about not being able to log into Yosemite with an emoji in the password.

Chrome version is 47.0.2526.70

joelcollinsdc avatar Dec 19 '15 02:12 joelcollinsdc

Killing chrome and reopening still shows the outdated content. Safari on my phone does show the latest content...

joelcollinsdc avatar Dec 19 '15 02:12 joelcollinsdc

FWIW, this morning it was showing updated content. Well... it says the top story is 16 minutes old on hackerweb and my desktop chrome says its 24 minutes old, but that seems like a non issue.

joelcollinsdc avatar Dec 19 '15 13:12 joelcollinsdc

It's been working all day. Maybe it's fixed now.

joelcollinsdc avatar Dec 20 '15 04:12 joelcollinsdc

@joelcollinsdc glad to know it's fixed for you. I didn't apply any fixes though, as it's kind of hard for me to replicate this bug. I suspect a few issues that might cause this but not 100% sure so I'll keep this in mind for now. Feel free to report here if you're experiencing this bug again, thanks!

cheeaun avatar Dec 20 '15 09:12 cheeaun

Thanks

joelcollinsdc avatar Dec 20 '15 12:12 joelcollinsdc

This keeps happening to me. How can I help troubleshoot?

joelcollinsdc avatar Dec 25 '15 21:12 joelcollinsdc

@joelcollinsdc Would be great if you could inspect the API calls and try loading them with cache bust e.g.: http://node-hnapi.herokuapp.com/item/9900168 (could be different endpoint for your case because the app "load-balance" with different endpoints) and try http://node-hnapi.herokuapp.com/item/9900168?test=1 to see if there are any differences.

cheeaun avatar Dec 26 '15 04:12 cheeaun

So by loading hackerweb on my desktop and inspecting, i saw that /news and /news2 was being requested. When I load these from my mobile chrome, I notice updated content.

Judging from how fast the hackerweb home page loads when the content is stale (very fast), my guess is that something in the JS on the webpage is telling chrome that it doesn't need to refresh the content from local storage. I was trying to find a way to debug/inspect the local storage in chrome mobile but couldn't...

joelcollinsdc avatar Dec 26 '15 15:12 joelcollinsdc

Proof i'm not totally crazy. It always seems to happen in the morning, if that helps. After the page has been open for an hour or so it seems to fix itself. (Example, the below pic was taken at 8:30 Central, by 9:30 it was working)

img_5785

joelcollinsdc avatar Dec 31 '15 15:12 joelcollinsdc