4 ms·
Does Varnish preload your images from cache? What if 100 people hit the page at the same time for an uncached image? I am not saying it can't be done, just ha
by brianwawok 10y ago
Does Varnish preload your images from cache?
What if 100 people hit the page at the same time for an uncached image?
I am not saying it can't be done, just having trouble figuring out the benefits.. its easier to store an image in cloud storage over in a database... and cheaper.. and less bug prone...
- dalyons 10y agoVarnish will actually hold those 100 connections open while it dispatches 1 single request to the backend. When that request returns (assuming the cache control headers allow it), it will serve that one response to all 100 requestors. It's a very powerfull tool for anything that's even slightly cachable.
- brianwawok 10y agoIf your site has 1 varnish, if your site has 20 varnishes it would do 20 connections.