Axxxxxx

nginx_cache

Sep 26th, 2021 (edited)
82
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ###########
  2.  
  3.         location ~* \.(jpg|jpeg|gif|png|svg|css|js|woff2|woff|webp|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|tar|wav|bmp|rtf|swf|ico|flv|txt|docx|xlsx)$ {
  4.                 expires max;
  5.                 log_not_found off;
  6.                 add_header Cache-Control public;
  7.                 etag on;
  8.  
  9.         }
  10.  
  11.         location ~ /\.git {
  12.                 deny all;
  13.                 access_log off;
  14.                 log_not_found off;
  15.         }
  16.  
  17. ##########
  18.  
RAW Paste Data