How can a I add files ending with for example:
to my the chache policy. I am using the following, which works fine with standard files, but does not cache files ending with other endings:
location ~* ^.+.(js|css|png|jpg|jpeg|gif|svg|svgz|eot|otf|woff|woff2|ttf|svg|ico|webp)$ { add_header Cache-Control "public"; try_files $uri @fallback; etag on; if_modified_since exact; #add_header Cache-Control "max-age=31536000";}
2.1m questions
2.1m answers
60 comments
57.0k users