EU Parliament Monitor — API Documentation - v0.9.0
    Preparing search index...
    • Append a cache-busting query parameter to an asset URL.

      Parameters

      • assetPath: string

        Relative path to the asset (e.g. css/styles.css)

      • config: CacheBustConfig

        Cache-bust configuration with the build hash

      Returns string

      URL with ?v=<buildShort> appended

      cacheBustUrl('css/styles.css', { buildShort: 'abc1234', appVersion: '0.8.59' })
      // → 'css/styles.css?v=abc1234'