I have a problem with cacheing. Following location in my config - perfectly handles all the extensions jpeg, jpg and stuff. location ~* \.(?:ico|pdf|flv|jpg|jpeg|png|gif|swf|x-html|woff|woff2|ttf|eot|map)$ { gzip off; expires 30d; log_not_found off; access_log off; add_header Cache-Control "public"; add_header Access-Control-Allow-Origin *; add_header X-Cacheby haloween - Nginx Mailing List - English