You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We now disabled caching of everything /api/ (see T6850), but that includes things like /api/logo/5/image/. This may negatively impact performance.
Ideally, we'd use aggressive caching for such things, and change the URL when the image changes. Maybe /api/logo/5/image/X/, where X is an incrementing serial, a hash/checksum, a timestamp, whatever.
The text was updated successfully, but these errors were encountered:
The caching of images is essential if you load a couple of them in one page, e.g. for REX the performance without caching was disastrous on the dashboard (we have many contact avatars).
What we did there was something like this: api/contact/2/image/3/, where the 3 was the ID of the file. In the contact API it would have a image_url property, which would look like "image_url": "api/contact/2/image/3/".
We now disabled caching of everything
/api/
(see T6850), but that includes things like/api/logo/5/image/
. This may negatively impact performance.Ideally, we'd use aggressive caching for such things, and change the URL when the image changes. Maybe
/api/logo/5/image/X/
, where X is an incrementing serial, a hash/checksum, a timestamp, whatever.The text was updated successfully, but these errors were encountered: