2 ms·
Adding Varnish makes it more than just a web server for static files, it also caches content created by the web server. This can be very useful for things like
by jeroenhd 2y ago
Adding Varnish makes it more than just a web server for static files, it also caches content created by the web server. This can be very useful for things like on-the-fly image resizing, which some blogs seem to do (requesting paths like /images/image.jpg/100x40/... based on the reader's device size).
Still not really a CDN, though.
- rollcat 2y agoWhether you do image resizing (or other CPU-bound tasks) ahead-of-time or just-in-time is an extremely important design decision, that needs to consider the needs of the application, available hardware resources, traffic patterns, etc - you shouldn't leave it to what is essentially random chance (maybe it's in the cache, maybe it isn't) without considering all of the above - unless you have a low-traffic blog that can get away with anything. Yes I was burned really badly by this in my young days ;)