bcremer / shopware-with-nginx

Running shopware using NGINX
http://shopware.com
BSD 2-Clause "Simplified" License
95 stars 46 forks source link

Add expires max for generated css/js files #13

Closed bcremer closed 9 years ago

bcremer commented 9 years ago
location ~* "^/web/cache/([0-9]{10})_(.+)\.(js|css)$" {
    expires max;
    add_header Vary Accept-Encoding;
    add_header Pragma public;
    add_header Cache-Control "public";
    access_log off;
}
bcremer commented 9 years ago

Closed by: https://github.com/bcremer/shopware-with-nginx/commit/55deee0461a2f5639938817f2f088a7654054957