Bug 12578 - Patron image caching
Summary: Patron image caching
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Staff interface (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-15 17:25 UTC by Tomás Cohen Arazi
Modified: 2022-12-06 23:09 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomás Cohen Arazi 2014-07-15 17:25:58 UTC
Currently, patron images are not cached and it takes a considerable amount of time to retrieve it in the staff client.

To reproduce:
- Go to a patron's detail page (choose a patron with an image attached)
- Enable the browser's network profiling interface
- Switch between tabs (Checkouts, Details, Fines, etc)
=> FAIL: patronimage.pl&borrowernumber=X is retrieved each time [1]

I've been told it is intended that each time the patron image is updated it has to instantly load the new one.

This could be better handled using a timestamp and the Last-Modified header.

[1] In my dev box it took it 1'' to load the single image.
Comment 1 David Cook 2022-12-06 23:09:19 UTC
I imagine an Etag header using a MD5 hash of the patron image would work well