Coffeeholic

PublicVersion 13

Images cache (no Cache-Control)

Public view

Images cache

  • Make the client handle caching for all images based on the image hash.
  • Create a React component (CachedImage) that centralizes all logic for managing image caching.
  • All static and dynamic images must use the CachedImage component, ensuring that every image is always displayed correctly.
  • The correct URL must be used by CachedImage to fetch the image from the source, regardless of whether it is a static or dynamic (blob.caffeine) image.