code: public static void disableCaching(HttpServletResponse response) {
          response.addHeader(PRAGMA_HEADER_NAME, "no-cache");
          response.addHeader(CACHE_CONTROL_HEADER_NAME, "no-cache, no-store, max-age=0");
          response.addDateHeader(EXPIRES_HEADER_NAME, 1L);
      }
docs: Disable caching in the client.
  
  @param response the response to add the headers for disabling caching.