Nevermind i think i found: nginx takes into account the Vary header for caching since 1.7.7. Hope it helps somebody else.by kevinff - Nginx Mailing List - English
Hello! Until version 1.6.2 we had a configuration which was working fine to force people to hit the cache: proxy_set_header Cookie ""; proxy_hide_header Set-Cookie; proxy_ignore_headers Expires Cache-Control Set-Cookie; proxy_cache_valid 3m; and we use a specific proxy_cache_bypass so we BYPASS the cache by ourselves periodically to refresh the cache (under 3m of course).by kevinff - Nginx Mailing List - English