Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: Cookies are sometimes empty

$
0
0
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.

Viewing all articles
Browse latest Browse all 4759

Trending Articles