There seems to be a consensus that Nginx serves static content faster than Apache. However, I'm not really sure what this means. For example, I have a script that generates an image only if the same image doesn't already exist in the cache. If it does exist in the cache, the script simply returns the public address of the image.
Would this be considered dynamic, static, or both? More importantly, would Nginx still have a speed advantage with this kind of scenario?