docstr: Disable cache for HTML files.
  
  Other assets like JS and CSS are suffixed with their hash, so they can
  be cached indefinitely.
docstr_tok: ["Disable","cache","for","HTML","files",".","Other","assets","like","JS","and","CSS","are","suffixed","with","their","hash",",","so","they","can","be","cached","indefinitely","."]
code: def set_extra_headers(self, path) -> None:
      """Disable cache for HTML files.
  
      Other assets like JS and CSS are suffixed with their hash, so they can
      be cached indefinitely.
      """
      is_index_url = len(path) == 0
  
      if is_index_url or path.endswith(".html"):
          self.set_header("Cache-Control", "no-cache")
      else:
          self.set_header("Cache-Control", "public")
  
file_path: streamlit/lib/streamlit/web/server/component_request_handler.py
imports: import mimetypes
  import os
  import tornado.web
  import streamlit.web.server.routes
  from streamlit.components.v1.components import ComponentRegistry
  from streamlit.logger import get_logger
label_desc: Use image node_id 3 for calling the ComponentRequestHandler obj's underlying member method code with example usage: obj.set_extra_headers(path) without return types