How to Serve Static Files Faster with Nginx: Expires Headers and Cache-Control
Every repeat visitor to your site downloads the same CSS, JavaScript, images, and fonts again unless you tell their browser not to. That wastes bandwidth, and on a small VPS it also wastes CPU serving files that never change. The fix is two HTTP headers, and you can set both in Nginx in about ten … Baca Selengkapnya