public function onKernelResponse(FilterResponseEvent $event)
    {
        if ($this->editor->isEnabled()) {
            $event
                ->getResponse()
                ->setSharedMaxAge(0)
                ->setMaxAge(0)
                ->setExpires(null)
                ->setLastModified(null)
                ->setPrivate();
        }
    }
public function onKernelResponse(FilterResponseEvent $event)
    {
        if ($this->editor->isEnabled()) {
            $event
                ->getResponse()
                ->setSharedMaxAge(0)
                ->setMaxAge(0)
                ->setExpires(null)
                ->setLastModified(null)
                ->setPrivate();
        }
    }
public function onKernelResponse ( FilterResponseEvent $ event ) { if ( $ this -> editor -> isEnabled ( ) ) { $ event -> getResponse ( ) -> setSharedMaxAge ( 0 ) -> setMaxAge ( 0 ) -> setExpires ( null ) -> setLastModified ( null ) -> setPrivate ( ) ; } }
Kernel response event.

@param FilterResponseEvent $event
Kernel response event .