varnish and squid are professional cache services, while apache and nginx are completed by third-party modules
squid has the most comprehensive functions, but its architecture is older and its performance is not as good as varnish
varnish adopts "Visual Page Cache" The technology is memory caching, which is top-notch in speed, but memory caching also limits its capacity. Caching pages and pictures is generally very good.
nginx is buffered using the third-party module ncache, and its performance is basically as good as Varnish, but in the architecture nginx is generally used as the reverse (most static files are now using nginx, and the concurrency can support up to 20,000+)
In the static architecture, if the front end directly faces the CDN, it is enough to use nginx cache
The above has introduced the differences between squid varnish and nginx in caching, including aspects of the cache. I hope it will be helpful to friends who are interested in PHP tutorials.