KeithCu / LinuxReport

Customizable Linux news site based on Python / Flask
https://covidreport.keithcu.com/
GNU Lesser General Public License v3.0
10 stars 2 forks source link

Use e-tags, last modified headers to be smarter / faster about fetching old content #20

Closed KeithCu closed 4 years ago

KeithCu commented 4 years ago

https://pythonhosted.org/feedparser/http-etag.html

To use this you have to save off some data. It also means that instead of expiring the whole feed to trigger a refresh, actually keep it around and use some other mechanism than cache expiration to trigger when to refetch the data.