Enable content expiry cache headers for nginx

Table of Contents

Related Articles

Prerequisites

Access to your Plesk server

Overview

In order to let browsers explicitly know to keep a copy parts of your website, you can set content-expiry headers within nginx. This means that subsequent page loads or revisits within the expiry time, the browser doesn't have to reload these files. This is best set for static media (ie CSS files, images and similar), which can in most instances be safely cached.

Instructions

Login to your Plesk server and select the domain you wish to set the content expiry headers for.