Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Speaking of Twitter UI, am I the only one having to hard refresh every other Twitter page to get rid of the “This is not available for you” message?


You need to clear your service workers for twitter

Edit:

- on chrom(e|ium) based browsers: chrome://serviceworker-internals/

- on firefox: about:debugging and scroll to service workers section


1. Why do I have to do that; what is the underlying bug?

2. How comes such a bug is still in production for months?


They deployed a bugged service worker long ago (beginning of 2020 or something), but service workers can be hard to replace because they tamper with requests and cache. "Technically" it's been fixed in production for a while, but it doesn't propagate so many still have the bug.. Still seems very strange to me that they allowed this situation to happen for such a huge (in traffic) website.

Not sure how exactly the service worker was broken (I didn't have the curiosity to check in devtools, and now it's gone), but I had this exact same issue and saw other people having it right here on HN, and this was the way to solve it too.


I see. Thanks!


Or use incognito for Twitter, and you'll you'll get fresh service workers every time.


Not possible in Safari I guess?


https://www.danielhill.com.au/removing-service-workers-from-...

Now I'm trying to figure out how to do it on Mobile Safari, where this bug always hits me.


Go to settings/safari/advanced/website data. At least clearing there worked for me.


Thanks, if that works that would be amazing. I'm most often getting it inside in-app browsers, e.g. when opening a Twitter link in Tweetbot, Apollo or similar apps. Not sure if they share the same central settings/service workers.


I'm afraid that does not solve this particular problem, just happened again on the very first try. I still think this is intentional or at least happily accepted on part of Twitter, with the happy side effect to make it as shitty an experience as possible when you're not using their app.


Should be possible, I just don't know how


about:serviceworkers is also a way to view them on firefox


No, I as well always use uMatrix's reload with cache bypass to circumvent the block.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: