Check the order of your regex locations. nginx uses the first regex location that matches, so a specific \.(css|js)$ block has to come before a general static-files block that also matches .js. Then confirm with curl -sI on a script: you want cache-control: no-cache, an etag and your CSP header all present. Our
Security Audit checks the headers from outside too.