Advertisement
Fany_VanDaal

Add Cache-Control Headers (NGINX)

Apr 25th, 2019
145
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None
  1. location ~* \.(jpg|jpeg|png|gif|ico|css|js|pdf|svg)$ {
  2. expires 90d;
  3. add_header Cache-Control "public, no-transform";
  4. }
Advertisement
RAW Paste Data Copied
Advertisement