I've been able to pinpoint the cause, but I don't really understand it too well.
add_header Set-Cookie "username=$http_matricola; Path=/" always;
when a file like this is requested
/static/js/xxx.js
it generates the username=yyy header under the /static/js path, but then the file
/static/js/xxx.js.map
is authomatically requested and served by nginx, and that overrides the cookie emptying it.
add_header Set-Cookie "username=$http_matricola; Path=/" always;
when a file like this is requested
/static/js/xxx.js
it generates the username=yyy header under the /static/js path, but then the file
/static/js/xxx.js.map
is authomatically requested and served by nginx, and that overrides the cookie emptying it.