Is usage for Large Media cached?

Hi Alex,

TL;DR yes transformations are cached, for 30 days, and when served from that cache, will not cost extra for additional service (except the bandwidth usage). Here’s details about how we cache and charge:

  • Large media has a separate s3 bucket that we cache transforms in for 30 days. (In other words, it’s not affected by caching timeouts or behaviors we do with other pages/assets - you can count on a specific transformation result to be cached for 30 days regardless of our standard CDN node caching status).
  • We also cache on our CDN nodes the same way we handle caching for all other assets. (This also adds an extra layer of performance boost, where if a user is browsing your site on a single CDN node, it won’t have to go to S3 to re-fetch the transformed image.)
  • If a large media transformation result is found in either cache already, then the user is not charged for an additional transformation.
  • Every combination of file (checked by SHA, not just filename, since you may upload a new image with the same filename) and transform parameters requires a unique transformation call. So if you request mypic.jpg?nf_resize=fit&w=300 and then request mypic.jpg?nf_resize=fit&w=301 , we can’t use the first cached image, and have to do a new transformation. Similarly, if you upload a new version of mypic.jpg , and then make the above requests again, we’ll have to do two more transformations.
1 Like