FriendsOfSymfony/FOSHttpCache — pull request #141 by dbu (2014-11-26 15:54:47+00:00)
Title: add note that varnish discards body when doing hash lookup

Another thing we just found out in our project:

We were (ab)using the context in a situation where we have a varnish redirecting to other internal servers that have no authentication on their own. We did a hash context lookup for all requests to decide whether the user is allowed to go to that external service (with a specific url to that service, symfony is configured to check permissions on those paths for specific groups). This all works well for GET, but with POST we loose the body which made the concept pointless.

This file is also shown in the doc.

I am not totally sure if its too much details - but i think at this place people might have creative ideas and be glad to be warned that this would not work...