Different content based on URL in R2

Currently, when publicly accessing bucket items via R2, there's different behaviour based on how I access the file:
1) https://our.domain/path/to/our/file.avif -> returns an old version of the file
2) http://our.domain/path/to/our/file.avif -> returns the newest version of the file
2) https://our.domain/path%2Fto%2Four%2Ffile.avif -> returns the newest version of the file

The flow we work with that is, we 1) upload an asset & then 2) replace it with a post-processed version later - I assume the CDN caching is resulting in the regular https url returning the old content?
Was this page helpful?