JeffreyCA / spotify-recently-played-readme

Display your recently played Spotify tracks on your GitHub profile README.
https://spotify-recently-played-readme.vercel.app
MIT License
364 stars 45 forks source link

Widget not get updated #10

Closed setoelkahfi closed 3 years ago

setoelkahfi commented 3 years ago

Thanks for this! Why does my widget not get updated whenever I finished listening to a new track? Is it the current implementation? I guess it's more a question than an issue.

JeffreyCA commented 3 years ago

It's not a "live" widget, so you have to refresh the page to see updates, if that's what you mean.

Another thing is that I set the following Cache-Control headers:

res.setHeader('Cache-Control', 's-maxage=60, stale-while-revalidate');
setoelkahfi commented 3 years ago

Yeah, I think it was the cache. I reload the page after playing a new track.