code: def static_cdn_tag(path, cdn, cdn_only=False):
      
      clean_path = path.lstrip("/")
      if getattr(settings, "OFFLINE", False):
          return static_url(join("vendor", clean_path))
      elif cdn_only:
          return cdn
      return urljoin(cdn, clean_path)
docs: Return the URL of a static file, with handling of offline mode.
  
      Usage: ``{%  %}``