How to set expiration date for static files being served directly by Nginx
page last edited on 28 February 2016
In case all static files are served directly by Nginx on your site, you may want to set expiration date for these static files.
To do it, specify additional directives in your nginx configuration file, within the “http” section, for example:
Help make this document better
This guide, as well as the rest of our docs, are open-source and available on GitHub.