Question

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?

Was it helpful?

Solution

In the context of web servers, "static" usually means the content is already known to exist in a file on disk and is not generated dynamically by running a program of any kind.

It sounds like your script, since it's a script, is dynamic content.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top