]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
todo note #520
authorjonaswinkler <jonas.winkler@jpwinkler.de>
Tue, 9 Feb 2021 20:53:10 +0000 (21:53 +0100)
committerjonaswinkler <jonas.winkler@jpwinkler.de>
Tue, 9 Feb 2021 20:53:10 +0000 (21:53 +0100)
src/documents/views.py

index 3a840567db727a24a09cb2d2fc057961ebee5365..9d1d87235d1e2a2e36d7411b060eb57bb4f2c884 100755 (executable)
@@ -291,6 +291,8 @@ class DocumentViewSet(RetrieveModelMixin,
                 handle = GnuPG.decrypted(doc.thumbnail_file)
             else:
                 handle = doc.thumbnail_file
+            # TODO: Send ETag information and use that to send new thumbnails
+            #  if available
             return HttpResponse(handle,
                                 content_type='image/png')
         except (FileNotFoundError, Document.DoesNotExist):