Add expires headers in Nginx?

Dr. McKay

Well-known member
Registered
Joined
Nov 26, 2016
Messages
565
Points
28
I am using Nginx on a VPS and it stored my static content. Is there a way that I can set the expires headers for every file that meets a specific rule?
For instance, I want to set the expires header for all files without opening every file to add. It is possible?
 
Newer Threads
Replies
8
Views
4,923
Replies
8
Views
6,560
Replies
6
Views
9,109
Latest Threads
Replies
1
Views
27
Replies
0
Views
190
Replies
1
Views
40
Replies
2
Views
83
Recommended Threads
Replies
23
Views
10,785
Replies
8
Views
4,175
S
  • Locked
Replies
2
Views
4,035
Replies
20
Views
7,228

Latest postsNew threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top