zenhack / ttrss-sandstorm

Sandstorm port of Tiny Tiny RSS
GNU General Public License v3.0
6 stars 2 forks source link

Cut down on the number of powerbox requests made. #6

Closed zenhack closed 3 years ago

zenhack commented 3 years ago

The number of powerbox requests made can be a bit annoying. We should try to cut back on this.

The easiest way to do this is probably to just request a capability for the root of a domain, and use that same capability for all requests on the domain, rather than acquiring a separate capability for each distinct URL.

The number of requests gets particularly bad when ttrss starts looking for a favicon where there is none to be found; it tries four or five possibilities before it gives up.

zenhack commented 3 years ago

Made the first improvement, which helps, since we now only get one pb request per (scheme, host) instead of per distinct URL. But the favicon thing is still super annoying, as it will e.g. try to add www. if it doesn't find one at the URL it's given.