Calculate, store and use etags on speaker photos
authorMagnus Hagander <magnus@hagander.net>
Mon, 5 Aug 2024 12:00:57 +0000 (14:00 +0200)
committerMagnus Hagander <magnus@hagander.net>
Mon, 5 Aug 2024 12:00:57 +0000 (14:00 +0200)
commit3e5aa61ee59396132d3f4d1ab6ae8eb790ab1370
tree20b04fc861d58a5395ba8e9ae693745cd03d4604
parent064502488dadf77d84bd3f73ae6e41d5d8ea7d9b
Calculate, store and use etags on speaker photos

This allows us to return 304 not modified for speaker photos, as they
change very infrequently. Actual etag is maintained as an md5() of the
contents, by a database trigger the same way we do for util/storage
fields.
postgresqleu/confreg/migrations/0115_speaker_photo_hashvals.py [new file with mode: 0644]
postgresqleu/confreg/models.py
postgresqleu/confreg/views.py