Caching Static Content with Nginx

1 · Christian Cleberg · Feb. 20, 2022, midnight
Update Your Nginx Config to Cache Static Files If you run a website on Nginx that serves static content (i.e., content that is not dynamic and changing with interactions from the user), you would likely benefit from caching that content on the client-side. If you're used to Apache and looking for the Nginx equivalent, this post should help. Luckily, setting up the cache is as easy as identifying the file types you want to cache and determining the expiration length. To include more file types, s...