pulsejet / nextcloud-oidc-login

Nextcloud login via a single OpenID Connect 1.0 provider
https://apps.nextcloud.com/apps/oidc_login
GNU Affero General Public License v3.0
233 stars 63 forks source link

Avoid to download and update avatars when they have not changed #220

Closed azmeuk closed 1 year ago

azmeuk commented 1 year ago

Set a If-Mofidied-Since HTTP header on the avatar download request, and avoid to update the avatar if the return code is different than 200.

A complementary merge request could be to do the same thing with ETag.

Related to #219

azmeuk commented 1 year ago

@pulsejet would you mind cutting a release after it is merged if you are OK with this patch? :pray:

azmeuk commented 1 year ago

Ah ah, I forgot I could do it myself :smile: