You can implement the `HTTP` class and call the method `setNoCacheHeaders`, as you can see below.

    use Magento\Framework\App\Response\Http;


    $this->response->setNoCacheHeaders();


[![Magento 2 remove cache from Block class][1]][1]


  [1]: https://i.sstatic.net/Me5qP.png