MartinMouritzen / PodcastPlayer

A simple podcast player using podcastindex.org
17 stars 1 forks source link

Cache busting #5

Open Siebe opened 3 years ago

Siebe commented 3 years ago

So as discussed on the mastadon a while ago, the caching of the PWA is a bit too solid.

I thought I'd put down my findings on the new donate button feature here. I can't say much about the browsers, as I was first looking at the Pocasting 2.0 Sandbox feed, which I expected to have all tags, so I was a little confused. I'm sure a hard refresh is at least enough to make the button appear on the original Podcasting 2.0 feed.

As for my Fairphone 3 with Android 10 and Firefox: I had not opened the PWA for some time and quite some restarts, but the button did not appear after opening.

Next, I opened the app in FF, no button. I refreshed FF using the menu and the button appeared.

I then opened the PWA, no button. Restarted the PWA by repeatedly pressing back button and opening, no button. I was surprised by that one.

Removed PWA, reinstalled from FF by refreshing and pressing "add to home screen" or install from menu. Open PWA, no button. Tried a few times, it actually returns to the last page when "reinstalled". It's just a FF session and it keeps running.

I've run out of ideas, except for what I did last time: purging all FF cache. I could do that a bit more carefully now (there were options) or try something else, let me know :)

MartinMouritzen commented 3 years ago

Hi Siebe, Thanks for taking the time to post these bug reports. It might not seem like it, but it really helps.

I've installed Firefox on my own android now, and installed the PWA through it, and I will be experimenting with how I can make it refresh faster!

(Also, for some weird reason the sandbox feed does not have the new things, only the original podcasting 2.0 feed seems to have it.)

Siebe commented 3 years ago

Hey Martin,

On the mastadon it seemed like very good news: on my phone both Chrome and FF seemed to update well. I'd like to do a double check on this, so if you could let me know when you roll-out a new feature that I can easily spot, than I'll do another test whether it updates well.

MartinMouritzen commented 3 years ago

Hi Siebe, I pushed out a new build where the default sort order is New episodes (no settings page yet though), there's also chapter support, eg. for the newest Podcasting 2.0 episode. I'd love to hear if your PWA updates!

Siebe commented 3 years ago

Hey Martin,

I think the cache problem isn't there, because I do have an updated version for both Crome and FF PWA's. I leave it up to you to close this ticket or not.

Some notes:

When opening a new podcast, the episodes are indeed sorted from old to new, but the select input shows new to old

I had podcasting 2.0 as subscription but did not see the latest (9) episode. I had to search for the podcast and select it again to get an update on the episode list. This was FF only I think.

I'm afraid I wasn't able to find the chaptes on that episode. I don't see them in the episode list, nor when playing the episode (but I do see episode speed, which is also new.. nice)

Small note from my side: I have to factory reset my phone because of some problems soon, so I will have fresh installs probably, although it seems the Chrome PWA might be in the Google backup system.

MartinMouritzen commented 3 years ago

Hi Siebe, I think the cache problem has probably been fixed - I have not heard about it in a while.

I think the other issues with episodes and cache has also been fixed. I hope!

Also, you are missed on podcastindex.social - I guess you're busy these days, but I hope you return! :)