Advertisement
swte

Nginx Expire headers

Mar 13th, 2020
1,354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.15 KB | None | 0 0
  1. location ~*  \.(css|js)$ {
  2.         expires 365d;
  3. }
  4. location ~*  \.(jpe?g|png|gif|webp|ico|ogg|mp4|woff2?|ttf|otf|svg)$ {
  5.         expires 30d;
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement