Advertisement
Fany_VanDaal

Zapnutí gzip

Oct 18th, 2019
196
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None
  1. gzip on;
  2. gzip_disable "MSIE [1-6]\\.(?!.*SV1)";
  3. gzip_proxied any;
  4. gzip_comp_level 5;
  5. gzip_types text/plain text/css application/javascript application/x-javascript text/xml application/xml application/rss+xml text/javascript image/x-icon image/bmp image/svg+xml;
  6. gzip_vary on;
  7.  
  8. location ~* \.(jpg|jpeg|png|gif|ico|css|js|pdf|svg)$ {
  9. expires 7d;
  10. add_header Cache-Control "public, no-transform";
  11. }
  12.  
  13. location ~* \.(jpg|jpeg|png|gif|ico|css|js|pdf|svg)$ {
  14. expires 7d;
  15. }
  16. location ~* \.(pdf|html|swf)$ {
  17. expires 7d;
  18. }
Advertisement
RAW Paste Data Copied
Advertisement