If a request is made to a CDN for a resized image, am I right in assuming that a second request for the same image but for a different size will NOT return the cached image?

E.g.

  • 1st request: myphoto.jpp 100x200
  • 2nd request: myphoto.jpg 200x400

The above will result in two hits to my ImageResizer server won't it? This is my assumption, I just want to be sure.

I guess another way to ask the question is, does the CDN consider the entire url or just the image being requested?

Any guidance is greatly appreciated.

有帮助吗?

解决方案

Different sizes will not return the cached image. A new image is requested from the resize server if the same sized images does not exist in the cache.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top