Closed esprehn closed 7 years ago
Yeah, the sw-precache-config has "fastest" for each cache, which probably means the cache wins 100% of the time: https://github.com/Polymer/hn-polymer-2/blob/master/sw-precache-config.js#L25
Edge caching for the API endpoint might also be doing the wrong thing
It's still stale to me now 24 hours later. So this seems like whatever is cached locally is always winning and it's never picking up new content. All the other HN apps seem to update, so it looks like something specific to what this one did.
This is still broken. The app is showing​ 10 day old articles still, and says "3 hours ago" even though the articles are very old.
Yep, still haven't had the time to fix the caching yet.
Confirmed after reloading from new deployment
Re-opening as the Firebase function we're using still seems to be incorrectly over-caching. This cache header looks like it's not being respected.
Looks like this is a firebase issue w/edge caching headers conflicting with our cache-control header
Ok, got word that this is fixed on the Firebase side now, so I'll redeploy and verify in a few minutes.
Ok, looks like this is working now!
Even after relaunching the app repeatedly it still shows an old list of Top articles. Looks like it's pulling stale data from an offline storage.