I got it! The "issue" was the origin server sending "Vary: Accept" header. In order to avoid this behaviour, simply set "proxy_ignore_headers Vary;" Thanks! Posted at Nginx Forum: http://forum.nginx.org/read.php?2,261128,261131#msg-261131