LBRYFoundation / Watch-on-LBRY

Plugin for web browser that automatic check if YouTube video is on LBRY
GNU General Public License v3.0
80 stars 19 forks source link

Caching changes for URL resolver APIs #87

Closed DeepDoge closed 2 years ago

DeepDoge commented 2 years ago
DeepDoge commented 2 years ago

Gonna add more commits under this.

DeepDoge commented 2 years ago

What changed?

Since we have 2 different API options(maybe more later) to resolve YouTube IDs and they might have different caching headers or no caching headers at all, I told browser to not cache the API request and handled caching using IndexedDB. (Cache time is 1 day)

Why used IndexedDB?