Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (!-e $request_filename)
- {
- rewrite ^(.+)$ /index.php?q=$1 last;
- }
- location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ {
- expires 365d;
- }
- location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
- expires 2d;
- add_header Cache-Control "public, no-transform";
- }
- location ~* /wp-content/uploads/*/(.+\.doc)$ {
- add_header Content-disposition "attachment; filename=$1";
- }
- gzip on;
- gzip_disable "MSIE [1-6]\\.(?!.*SV1)";
- gzip_proxied any;
- gzip_comp_level 9;
- gzip_types text/plain text/css application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript image/x-icon image/bmp image/svg+xml;
- gzip_vary on;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement