Fixing switching to regular display when varnish is enabled (switching through POST, as this way the request does not get cached).
(cherry picked from commit 33000bd)