code: def path(self):
          
          path = self._path()
          statobj = os.stat(path)
          ae = self.request.META.get('HTTP_ACCEPT_ENCODING', '')
          if re_accepts_gzip.search(ae) and getattr(settings, 'UMAP_GZIP', True):
              gzip_path = "{path}{ext}".format(path=path, ext=self.EXT)
              up_to_date = True
              if not os.path.exists(gzip_path):
                  up_to_date = False
              else:
                  gzip_statobj = os.stat(gzip_path)
                  if statobj.st_mtime > gzip_statobj.st_mtime:
                      up_to_date = False
              if not up_to_date:
                  gzip_file(path, gzip_path)
              path = gzip_path
          return path
docs: Serve gzip file if client accept it.
          Generate or update the gzip file if needed.